public WebPubSubTriggerBindingProvider(IWebPubSubTriggerDispatcher dispatcher, INameResolver nameResolver, WebPubSubOptions 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;
 }
Esempio n. 2
0
        public WebPubSubTriggerBinding(ParameterInfo parameterInfo, WebPubSubTriggerAttribute attribute, WebPubSubOptions options, IWebPubSubTriggerDispatcher dispatcher)
        {
            _parameterInfo = parameterInfo ?? throw new ArgumentNullException(nameof(parameterInfo));
            _attribute     = attribute ?? throw new ArgumentNullException(nameof(attribute));
            _dispatcher    = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher));
            _options       = options ?? throw new ArgumentNullException(nameof(options));

            BindingDataContract = CreateBindingContract(parameterInfo);
        }
        private static void ApplyConfiguration(IConfiguration config, WebPubSubOptions options)
        {
            if (config == null)
            {
                return;
            }

            config.Bind(options);
        }
 public WebPubSubRequestBinding(
     BindingProviderContext context,
     IConfiguration configuration,
     INameResolver nameResolver,
     WebPubSubOptions options) : base(context, configuration, nameResolver)
 {
     _userType = context.Parameter.ParameterType;
     _options  = options;
 }
 public WebPubSubConfigProvider(
     IOptions <WebPubSubOptions> options,
     INameResolver nameResolver,
     ILoggerFactory loggerFactory,
     IConfiguration configuration)
 {
     _options       = options.Value;
     _logger        = loggerFactory.CreateLogger(LogCategories.CreateTriggerCategory("WebPubSub"));
     _nameResolver  = nameResolver;
     _configuration = configuration;
     _dispatcher    = new WebPubSubTriggerDispatcher(_logger);
 }
 public WebPubSubTriggerBindingProvider(IWebPubSubTriggerDispatcher dispatcher, WebPubSubOptions options)
 {
     _dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher));
     _options    = options ?? throw new ArgumentNullException(nameof(options));
 }
 public WebPubSubRequestBindingProvider(WebPubSubOptions options, INameResolver nameResolver, IConfiguration configuration)
 {
     _options       = options;
     _nameResolver  = nameResolver;
     _configuration = configuration;
 }