public SignalRTriggerBindingProvider(ISignalRTriggerDispatcher dispatcher, INameResolver nameResolver, IServiceManagerStore managerStore, Exception webhookException) { _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher)); _nameResolver = nameResolver ?? throw new ArgumentNullException(nameof(nameResolver)); _managerStore = managerStore ?? throw new ArgumentNullException(nameof(managerStore)); _webhookException = webhookException; }
public SignalRTriggerBindingProvider(ISignalRTriggerDispatcher dispatcher, INameResolver nameResolver, SignalROptions options, Exception webhookException) { _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher)); _nameResolver = nameResolver ?? throw new ArgumentNullException(nameof(nameResolver)); _options = options ?? throw new ArgumentNullException(nameof(options)); _webhookException = webhookException; }
public SignalRTriggerBinding(ParameterInfo parameterInfo, SignalRTriggerAttribute attribute, ISignalRTriggerDispatcher dispatcher) { _parameterInfo = parameterInfo ?? throw new ArgumentNullException(nameof(parameterInfo)); _attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher)); BindingDataContract = CreateBindingContract(_attribute, _parameterInfo); }
public SignalRTriggerBinding(ParameterInfo parameterInfo, SignalRTriggerAttribute attribute, ISignalRTriggerDispatcher dispatcher, AccessKey[] accessKeys, ServiceHubContext hubContext) { _parameterInfo = parameterInfo ?? throw new ArgumentNullException(nameof(parameterInfo)); _attribute = attribute ?? throw new ArgumentNullException(nameof(attribute)); _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher)); _accessKeys = accessKeys ?? throw new ArgumentNullException(nameof(accessKeys)); _hubContext = hubContext; BindingDataContract = CreateBindingContract(_attribute, _parameterInfo); }
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); }
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); }