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); }
public IHandlingScope Enter(HandlerIdentity identity) { return(new HandlingScope(_container, identity)); }