コード例 #1
0
 public DataServiceBase(IDataServiceConfig config, IHystrixCommandFactory hystrixCommandFactory,
                        ILogger <IDataService <T> > logger)
 {
     _config = config ?? throw new ArgumentNullException(nameof(config));
     _hystrixCommandFactory = hystrixCommandFactory ?? throw new ArgumentNullException(nameof(hystrixCommandFactory));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
コード例 #2
0
 public StoryService(Dictionary <string, IDataService <object> > dataServices, IDataServiceConfig config,
                     HystrixCommandFactory hystrixCommandFactory, ILogger <IDataService <Story> > logger) :
     base(dataServices, config, hystrixCommandFactory, logger)
 {
     if (!dataServices.ContainsKey("StoryDataService"))
     {
         throw new ArgumentNullException("AuthenticatedIdentity",
                                         "AuthenticatedIdentity required in parameters");
     }
 }
コード例 #3
0
 public Container(Dictionary <string, IDataService <object> > dataServices, IDataServiceConfig config,
                  HystrixCommandFactory hystrixCommandFactory, ILogger <IDataService <T> > logger) :
     base(config, hystrixCommandFactory, logger)
 {
     _dataServices = dataServices ?? throw new ArgumentNullException(nameof(dataServices));
 }
コード例 #4
0
 public ProviderServiceBase(IDataServiceConfig config, HystrixCommandFactory hystrixCommandFactory,
                            ILogger <IDataService <T> > logger) : base(config, hystrixCommandFactory, logger)
 {
 }