GetWebHookReceiverManager() public method

public GetWebHookReceiverManager ( WebHostSettings settings ) : WebHookReceiverManager
settings WebHostSettings
return Microsoft.Azure.WebJobs.Script.WebHost.WebHooks.WebHookReceiverManager
        internal static void Initialize(ContainerBuilder builder, WebHostSettings settings)
        {
            // register the resolver so that it is disposed when the container
            // is disposed
            var webHostResolver = new WebHostResolver();

            builder.RegisterInstance(webHostResolver);

            // these services are externally owned by the WebHostResolver, and will be disposed
            // when the resolver is disposed
            builder.Register <SecretManager>(ct => webHostResolver.GetSecretManager(settings)).ExternallyOwned();
            builder.Register <WebScriptHostManager>(ct => webHostResolver.GetWebScriptHostManager(settings)).ExternallyOwned();
            builder.Register <WebHookReceiverManager>(ct => webHostResolver.GetWebHookReceiverManager(settings)).ExternallyOwned();
        }
Esempio n. 2
0
 internal static void Initialize(ContainerBuilder builder, WebHostSettings settings)
 {
     builder.Register <SecretManager>(ct => WebHostResolver.GetSecretManager(settings)).ExternallyOwned();
     builder.Register <WebScriptHostManager>(ct => WebHostResolver.GetWebScriptHostManager(settings)).ExternallyOwned();
     builder.Register <WebHookReceiverManager>(ct => WebHostResolver.GetWebHookReceiverManager(settings)).ExternallyOwned();
 }