System.Web.Http.HttpConfigurationExtensions.InitializeCustomWebHooksAzureQueueSender C# (CSharp) Method

InitializeCustomWebHooksAzureQueueSender() public static method

Configures a Microsoft Azure Table Storage implementation of IWebHookStore which provides a persistent store for registered WebHooks used by the custom WebHooks module.
public static InitializeCustomWebHooksAzureQueueSender ( this config ) : void
config this The current config.
return void
        public static void InitializeCustomWebHooksAzureQueueSender(this HttpConfiguration config)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            WebHooksConfig.Initialize(config);

            ILogger logger = config.DependencyResolver.GetLogger();
            SettingsDictionary settings = config.DependencyResolver.GetSettings();

            IStorageManager storageManager = StorageManager.GetInstance(logger);
            IWebHookSender sender = new AzureWebHookSender(storageManager, settings, logger);
            CustomServices.SetSender(sender);
        }