Esempio n. 1
0
        private static IImmutableStack <object> GetLogicalOperationStack()
        {
            IImmutableStack <object> empty = (IImmutableStack <object>)CallContext.LogicalGetData(LogicalOperation.CallContextDataSlotName);

            if (empty == null)
            {
                empty = ImmutableLogicalOperationStack <object> .Empty;
                if (LogicalOperation.IsRunningInAdapter)
                {
                    empty = empty.Push(new object());
                }
                LogicalOperation.UpdateImmutableStack(empty);
            }
            return(empty);
        }
Esempio n. 2
0
 private static void StopLogicalOperation()
 {
     LogicalOperation.UpdateImmutableStack(LogicalOperation.GetLogicalOperationStack().Pop());
 }
Esempio n. 3
0
 private static void StartLogicalOperation(object data)
 {
     LogicalOperation.UpdateImmutableStack(LogicalOperation.GetLogicalOperationStack().Push(data));
 }