Exemple #1
0
        public GrpcHost(
            IServiceCollection appServices,
            IServiceProvider hostingServiceProvider,
            GrpcHostOptions options,
            IConfiguration config)
        {
            _options = options;
            _config  = config;
            _server  = new Grpc.Core.Server(options.ChannelOptions);

            _applicationServiceCollection = appServices;
            _hostingServiceProvider       = hostingServiceProvider;
        }
 public void Initialize(string rootPath, GrpcHostOptions options)
 {
     this.RootPath = rootPath;
 }