示例#1
0
 public SignalRConfigProvider(
     INameResolver nameResolver,
     ILoggerFactory loggerFactory,
     IConfiguration configuration,
     IServiceManagerStore serviceManagerStore,
     ISecurityTokenValidator securityTokenValidator = null,
     ISignalRConnectionInfoConfigurer signalRConnectionInfoConfigurer = null)
 {
     this.logger              = loggerFactory.CreateLogger(LogCategories.CreateTriggerCategory("SignalR"));
     this.nameResolver        = nameResolver;
     this.serviceManagerStore = serviceManagerStore;
     this._dispatcher         = new SignalRTriggerDispatcher();
     inputBindingProvider     = new InputBindingProvider(configuration, nameResolver, securityTokenValidator, signalRConnectionInfoConfigurer);
 }
示例#2
0
 public SignalRConfigProvider(
     IOptions <SignalROptions> options,
     INameResolver nameResolver,
     ILoggerFactory loggerFactory,
     IConfiguration configuration,
     ISecurityTokenValidator securityTokenValidator = null,
     ISignalRConnectionInfoConfigurer signalRConnectionInfoConfigurer = null)
 {
     this.options         = options.Value;
     this.loggerFactory   = loggerFactory;
     this.logger          = loggerFactory.CreateLogger(LogCategories.CreateTriggerCategory("SignalR"));
     this.nameResolver    = nameResolver;
     this.configuration   = configuration;
     this._dispatcher     = new SignalRTriggerDispatcher();
     inputBindingProvider = new InputBindingProvider(configuration, nameResolver, securityTokenValidator, signalRConnectionInfoConfigurer);
 }