コード例 #1
0
        private ServiceFlowScope()
        {
            if (IsNull)
            {
                return;
            }

            if (!Current.IsNull)
            {
                _parentScope = Current;
            }

            Current = this;
        }
コード例 #2
0
        private bool disposedValue = false; // To detect redundant calls

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    Current = _parentScope;
                }

                // TODO: free unmanaged resources (unmanaged objects) and override a finalizer below.
                // TODO: set large fields to null.

                disposedValue = true;
            }
        }
コード例 #3
0
 public ServiceFlowScopeWrapper(ServiceFlowScope scope)
 {
     Scope = scope;
 }