public ExecutionScope Begin() { var scope = new ExecutionScope(this); _Scopes.Add(scope.Key, scope); return(scope); }
public void End(ExecutionScope scope) { _Scopes.Remove(scope.Key); }
public bool IsActive(ExecutionScope scope) { return(_Scopes.ContainsKey(scope.Key)); }
public ExecutionScopeLifetimeManager(ExecutionScope scope) { Scope = scope; }