示例#1
0
 public QueryService(ConfigService configService, RegistryService registryService, ClientFactory clientFactory, UnknownAction unknownAction, DescribeAction describeAction, CommandAction commandAction, QueryAction queryAction)
 {
     this.config         = configService ?? throw new ArgumentNullException(nameof(configService));
     this.registry       = registryService ?? throw new ArgumentNullException(nameof(registryService));
     this.clients        = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory));
     this.unknownAction  = unknownAction ?? throw new ArgumentNullException(nameof(unknownAction));
     this.describeAction = describeAction ?? throw new ArgumentNullException(nameof(describeAction));
     this.commandAction  = commandAction ?? throw new ArgumentNullException(nameof(commandAction));
     this.queryAction    = queryAction ?? throw new ArgumentNullException(nameof(queryAction));
 }
示例#2
0
 public ServiceService(ConfigService configService, RegistryService registryService)
 {
     this.config   = configService;
     this.registry = registryService;
 }