コード例 #1
0
 public BaseUseCase(IIocContainer container)
 {
     logger         = container.Resolve <ILogger <BaseUseCase <T> > >();
     currentUser    = container.Resolve <ICurrentUserInfo>();
     modelValidator = container.Resolve <ICustomModelValidator>();
     DtoExtension.BuilderTool(container.Resolve <IGlobalTool>());
 }
コード例 #2
0
 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>();
 }