C# 클래스 Microsoft.AspNet.WebHooks.WebHookReceiverConfig

Provides a default IWebHookReceiverConfig implementation which manages IWebHookReceiver configuration using application settings. The name of the application setting is 'MS_WebHookReceiverSecret_<name>' where 'name' is the name of the receiver, for example github. The value is a comma-separated list of secrets, using an ID to differentiate between them. For example, 'secret0, id1=secret1, id2=secret2'. The corresponding WebHook URI is of the form 'https://<host>/api/webhooks/incoming/custom/{id}'.
상속: IWebHookReceiverConfig
파일 보기 프로젝트 열기: aspnet/WebHooks 1 사용 예제들

공개 메소드들

메소드 설명
GetReceiverConfigAsync ( string name, string id ) : Task
WebHookReceiverConfig ( SettingsDictionary settings, ILogger logger ) : System

Initializes a new instance of the WebHookReceiverConfig which will use the application settings set in the given settings.

비공개 메소드들

메소드 설명
AddKey ( string>.IDictionary config, ILogger logger, string receiver, string id, string value ) : void
GetConfigKey ( string receiver, string id ) : string
ReadSettings ( SettingsDictionary settings, ILogger logger ) : string>.IDictionary

메소드 상세

GetReceiverConfigAsync() 공개 메소드

public GetReceiverConfigAsync ( string name, string id ) : Task
name string
id string
리턴 Task

WebHookReceiverConfig() 공개 메소드

Initializes a new instance of the WebHookReceiverConfig which will use the application settings set in the given settings.
public WebHookReceiverConfig ( SettingsDictionary settings, ILogger logger ) : System
settings SettingsDictionary The to use for reading configuration.
logger ILogger The to use.
리턴 System