Example #1
0
        public HandlingScope(Container container, HandlerIdentity identity)
        {
            Identity             = identity;
            _container           = container;
            _context             = _container.GetInstance <DbContext>();
            _handlingScopesStack = _container.GetInstance <IHandlingScopesStack <HandlingScope> >();

            _parentScope = _handlingScopesStack.GetCurrentScope();
            _handlingScopesStack.EnterScope(this);
        }
 protected bool Equals(HandlerIdentity other)
 {
     return(Id == other.Id);
 }
Example #3
0
 public IHandlingScope Enter(HandlerIdentity identity)
 {
     return(new HandlingScope(_container, identity));
 }