Пример #1
0
 public GrpcPluginFactory(ServiceDescriptor serviceDescriptor, IOptions <GrpcHttpGatewayConfiguration> config, ILogger <GrpcPluginFactory> logger)
 {
     this.logger            = logger;
     this.config            = config.Value;
     this.serviceDescriptor = serviceDescriptor;
     if (this.config.PluginMonitor)
     {
         MonitorStart();
     }
 }
Пример #2
0
 public GrpcProtoFactory(GrpcPluginFactory pluginFactory, IOptions <GrpcHttpGatewayConfiguration> config, CodeGenerater codeGenerater, CodeBuilder codeBuilder, ILogger <GrpcProtoFactory> logger)
 {
     this.logger        = logger;
     this.pluginFactory = pluginFactory;
     this.codeGenerater = codeGenerater;
     this.codeBuilder   = codeBuilder;
     this.config        = config.Value;
     protoQueue         = new ProducerConsumer <string>(protoFileName => LoadAsync(protoFileName).Wait());
     if (this.config.ProtoMonitor)
     {
         MonitorStart();
     }
 }