FIX: ?????? CallContext ??? ????? ??? ????? ???? serviced ????

?????? ????????? ?????? ?????????
???? ???????: 319177 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ??? ?????? ?????? CallContext ??? ????? ???? ???? serviced ?? ????? ???? ?? ???? ?????? CallContext ??? ????? ???? ??????.

?????

???? ??? ??????? ?? ???? ?????? ???????? ???? ??? ?? CallContext ?? ????? ILogicalThreadAffinative. ??? ??? ???? ??? ???????? ?? CallContext (?????? ??????? ??????? CallContext.SetData) ?? ????? ???? ????? ServicedComponent ????? CallContext.GetData ??? ???????? ???? "????".

????

??? ??? ???????? ??? ?????? ??? ???? ???? ???? ??????? Microsoft .NET Framework. ?????? ??? ??????? ??????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
318836INFO: ????? ?????? ??? ???? ???? ???? ??????? .NET Framework

???? ??????

??????? ?????? ??? ??? ??????? ?????? ???? ????? ???????:
  • ??? ??? ???? ??? ??????? ??????? CallContext ?????? ?? ??????? ????? ?? ?? ????? ??? ??????? ?? ILogicalThreadAffinative.

    ??????: ?? ?????? ??????? ?? ???? ?? ????? ??? ???????? ??? AppDomains.
  • ??? ??? ???? ??????? ?????? ??????? ?? ???? ?? ???????? ServicedComponent ? ??? ??? ???? ?? ???? CallContext ????? ??? ????? ???? ?? ???????? ServicedComponent ??? ??? ??? ??????? ?? CallContext.

    ????? ?????? ???, ???? ????? ??????? CallContext ??? ????? ???? ServicedComponent ?? ????? ?? ??? ????????? ??.
??????: ????? ??? ????????? ???? CallContext ?? ??????? ServicedComponent. ?? ???? Microsoft ??????? CallContext ?? ??? ???????? ServicedComponent.

?????

???? Microsoft ?? ??? ????? ?? ?????? Microsoft ??????? ?? ????? ??? ???????. ?? ????? ??? ??????? ???? ??? ?? Microsoft .NET Framework ?????? ????? ?????? Service Pack 2 (SP2).

??????? ????

?? ???? CallContext ????? ????? ????????? ??? ???? ?????? ?? ?????? ??? ?????? ?? ????? ??????. ???? CallContext ?????? ??????? ???? ??? ????? ?? ???? ????? ???????? ???????? (??????? ?????).

???? ??? ??????? ????? ?? ???? ?????? ?? ???? CallContext.

????? ????? ????? ???????

  1. ????? ?????? ????? ??? CallContext:
    [Serializable]
    public class CtxObject : ILogicalThreadAffinative
    {
    	public string CtxString;
    	public CtxObject(){CtxString = "Some String" ;}
    }
    					
  2. ??? ??? ??? ???????? ?? ???? ?????? CallContext ?? ?? ?????? ???? ServicedComponent:
    // Create CallContext object.
    CtxObject CtxObj = new CtxObject () ;                     
    
    // Set it in the CallContext.
    CallContext.SetData ("CtxObject", CtxObj) ;
    
    // Create the serviced component.
    MyServicedComponent MyObj = new MyServicedComponent () ;  
    
    // Retrieve the CallContext object (returns null).
    CtxObject CtxObj1 = (CtxObject) CallContext.GetData ("CtxObject") ;  
    					

???????

???? ???????: 319177 - ????? ??? ??????: 24/????/1428 - ??????: 3.3
????? ???
  • Microsoft .NET Framework Class Libraries 1.0
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Enterprise Services (included with the .NET Framework) 1.0
????? ??????: 
kbmt kbvs2002sp1sweep kbbug kbfix kbnetframe100sp2fix kbremoting KB319177 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????319177

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com