Beispiel #1
0
        public ExecutionScope Begin()
        {
            var scope = new ExecutionScope(this);

            _Scopes.Add(scope.Key, scope);
            return(scope);
        }
Beispiel #2
0
 public void End(ExecutionScope scope)
 {
     _Scopes.Remove(scope.Key);
 }
Beispiel #3
0
 public bool IsActive(ExecutionScope scope)
 {
     return(_Scopes.ContainsKey(scope.Key));
 }
 public ExecutionScopeLifetimeManager(ExecutionScope scope)
 {
     Scope = scope;
 }