コード例 #1
0
 public void DoSomething()
 {
     // Add some contextual information to the store.
     ServiceContextStore.Current.Add("MyContextualInformation", "value");
     // Now invoke the business facade which in turn consumes that information.
     IBusinessObject businessObject = new BusinessObject();
     businessObject.DoBusiness();
 }