System.Web.Http.HttpConfigurationExtensions.InitializeReceiveGenericJsonWebHooks C# (CSharp) Méthode

InitializeReceiveGenericJsonWebHooks() public static méthode

Initializes support for receiving generic WebHooks containing valid JSON with no special validation logic or security requirements. This can for example be used to receive WebHooks from IFTTT's Maker Channel or a Zapier WebHooks Action. A sample WebHook URI is 'https://<host>/api/webhooks/incoming/genericjson/{id}?code=83699ec7c1d794c0c780e49a5c72972590571fd8'. 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_GenericJson' 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. The URI may optionally include an 'action' query parameter which will serve as the WebHook action.
public static InitializeReceiveGenericJsonWebHooks ( this config ) : void
config this The current config.
Résultat void
        public static void InitializeReceiveGenericJsonWebHooks(this HttpConfiguration config)
        {
            WebHooksConfig.Initialize(config);
        }
    }