public BaseUseCase(IIocContainer container) { logger = container.Resolve <ILogger <BaseUseCase <T> > >(); currentUser = container.Resolve <ICurrentUserInfo>(); modelValidator = container.Resolve <ICustomModelValidator>(); DtoExtension.BuilderTool(container.Resolve <IGlobalTool>()); }
public BaseQueryService(IIocContainer container) { logger = container.Resolve <ILogger <BaseQueryService <Tin, TOut> > >(); currentUser = container.Resolve <ICurrentUserInfo>(); globalTool = container.Resolve <IGlobalTool>(); DtoExtension.BuilderTool(globalTool); modelValidator = container.Resolve <ICustomModelValidator>(); }