コード例 #1
0
ファイル: QueryService.cs プロジェクト: erisonliang/sql-d
 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
ファイル: ServiceService.cs プロジェクト: erisonliang/sql-d
 public ServiceService(ConfigService configService, RegistryService registryService)
 {
     this.config   = configService;
     this.registry = registryService;
 }