/// <summary>
 /// Clears the call context and restores the parent operation.
 /// </summary>
 /// <param name="parentContext">Parent operation context store to replace child operation context store.</param>
 internal static void RestoreOperationContext(OperationContextForCallContext parentContext)
 {
     CallContext.FreeNamedDataSlot(FieldKey);
     if (parentContext != null)
     {
         CallContext.LogicalSetData(FieldKey, new ObjectHandle(parentContext));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Clears the call context and restores the parent operation.
 /// </summary>
 /// <param name="parentContext">Parent operation context store to replace child operation context store.</param>
 internal static void RestoreOperationContext(OperationContextForCallContext parentContext)
 {
     CallContext.FreeNamedDataSlot(OperationContextSlotName);
     if (parentContext != null)
     {
         CallContext.LogicalSetData(OperationContextSlotName, parentContext);
     }
 }
 /// <summary>
 /// Clears the call context and restores the parent operation.
 /// </summary>
 /// <param name="parentContext">Parent operation context store to replace child operation context store.</param>
 internal static void RestoreOperationContext(OperationContextForCallContext parentContext)
 {
     CallContext.FreeNamedDataSlot(OperationContextSlotName);
     if (parentContext != null)
     {
         CallContext.LogicalSetData(OperationContextSlotName, parentContext);
     }
 }
 /// <summary>
 /// Saves the context store to the call context.
 /// </summary>
 /// <param name="operationContext">Operation context store instance.</param>
 internal static void SaveOperationContext(OperationContextForCallContext operationContext)
 {
     CallContext.FreeNamedDataSlot(FieldKey);
     CallContext.LogicalSetData(FieldKey, new ObjectHandle(operationContext));
 }
Exemplo n.º 5
0
 /// <summary>
 /// Saves the context store to the call context.
 /// </summary>
 /// <param name="operationContext">Operation context store instance.</param>
 internal static void SaveOperationContext(OperationContextForCallContext operationContext)
 {
     CallContext.FreeNamedDataSlot(OperationContextSlotName);
     CallContext.LogicalSetData(OperationContextSlotName, operationContext);
 }
 /// <summary>
 /// Saves the context store to the call context.
 /// </summary>
 /// <param name="operationContext">Operation context store instance.</param>
 internal static void SaveOperationContext(OperationContextForCallContext operationContext)
 {
     CallContext.FreeNamedDataSlot(OperationContextSlotName);
     CallContext.LogicalSetData(OperationContextSlotName, operationContext);
 }