コード例 #1
0
        public IAmbientScope  GetScope(ScopeMode mode)
        {
            var scope = new AmbientScope(ContextFactory.CreateContext(), mode);

            ScopeContainer.SetCurrent(scope, scope.instanceIdentifier);
            return(scope);
        }
コード例 #2
0
 public IAmbientScope GetCurrentScope()
 {
     return(ScopeContainer.GetCurrentScope());
 }