コード例 #1
0
        public SetupMiddleware(RequestDelegate next, IHeaderFactory headerFactory, IServiceConfiguration middleWareContext)
        {
            Verify.IsNotNull(nameof(next), next);
            Verify.IsNotNull(nameof(headerFactory), headerFactory);
            Verify.IsNotNull(nameof(middleWareContext), middleWareContext);

            _next                 = next;
            _headerFactory        = headerFactory;
            _serviceConfiguration = middleWareContext;
            _webLogEvent          = _serviceConfiguration.Get <IWebEventLog>() ?? AspMvcEventSource.Log;
        }
コード例 #2
0
 public AddNewHeaderCommand(IUnitOfWork uow, IHeaderFactory factory, IHeaderDataFactory dataFactory)
 {
     _uow         = uow;
     _factory     = factory;
     _dataFactory = dataFactory;
 }