NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Call Context Programming Tasks

Sample code

Shown how code can get and set the call context.

void SomeMethod()
{
  MyObject myObject  = new MyObject();
   CallContext.SetData(“MyItem”) = myObject;
}

void SomeOtherMethod()
{
   MyObject myObject = CallContext.GetData(“MyItem”);
}