public IAmbientScope GetScope(ScopeMode mode) { var scope = new AmbientScope(ContextFactory.CreateContext(), mode); ScopeContainer.SetCurrent(scope, scope.instanceIdentifier); return(scope); }
public IAmbientScope GetCurrentScope() { return(ScopeContainer.GetCurrentScope()); }