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

InitializeReceiveVstsWebHooks() public static method

Initializes support for receiving WebHooks generated by Visual Studio Team Services. A sample WebHook URI is 'https://<host>/api/webhooks/incoming/vsts/{id}?code={code}'. For security reasons the WebHook URI must be an https URI and contain a 'code' query parameter with the same value as configured in the 'MS_WebHookReceiverSecret_VSTS' application setting, optionally using IDs to differentiate between multiple WebHooks, for example 'secret0, id1=secret1, id2=secret2'. The 'code' parameter must be between 32 and 128 characters long.
public static InitializeReceiveVstsWebHooks ( this config ) : void
config this The current config.
return void
        public static void InitializeReceiveVstsWebHooks(this HttpConfiguration config)
        {
            WebHooksConfig.Initialize(config);
        }
    }