public WebPubSubTriggerBindingProvider(IWebPubSubTriggerDispatcher dispatcher, INameResolver nameResolver, WebPubSubFunctionsOptions 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 WebPubSubTriggerBinding(ParameterInfo parameterInfo, WebPubSubTriggerAttribute attribute, WebPubSubFunctionsOptions 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);
        }
 public WebPubSubContextBinding(
     BindingProviderContext context,
     IConfiguration configuration,
     INameResolver nameResolver,
     WebPubSubFunctionsOptions options) : base(context, configuration, nameResolver)
 {
     _userType = context.Parameter.ParameterType;
     _options  = options;
 }
 public WebPubSubConfigProvider(
     IOptions <WebPubSubFunctionsOptions> options,
     INameResolver nameResolver,
     ILoggerFactory loggerFactory,
     IConfiguration configuration)
 {
     _options       = options.Value;
     _logger        = loggerFactory.CreateLogger(LogCategories.CreateTriggerCategory("WebPubSub"));
     _nameResolver  = nameResolver;
     _configuration = configuration;
     _dispatcher    = new WebPubSubTriggerDispatcher(_logger, _options);
 }
예제 #5
0
 public WebPubSubContextBindingProvider(INameResolver nameResolver, IConfiguration configuration, WebPubSubFunctionsOptions options)
 {
     _nameResolver  = nameResolver;
     _configuration = configuration;
     _options       = options;
 }