C# 클래스 EventHubAPIApp.Controllers.TriggersController.InMemoryTriggerStore

Class for the InMemoryTriggerStore. How the Logic App works, it will call the PUSH trigger endpoint with the triggerID and CallBackURL - it is the job of the API App to then call the CallbackURL when an event happens. I utilize this InMemoryTriggerStore to store the triggers I am watching, so that I don't continue to spin up new listeners whenever the Logic App asks me to register a trigger. If the API App was ever to reset or lose connection, I would know I need to register new Event Hub Listeners as the InMemoryTriggerStore would be empty.
파일 보기 프로젝트 열기: logicappsio/EventHubAPI

공개 메소드들

메소드 설명
GetStore ( ) : List>.IDictionary
RegisterTrigger ( EventHubInput input ) : Task

The method that registers Event Hub listeners and assigns them to a Receive event. When I receive an event from the event hub listener, I trigger the callbackURL

TriggerLogicApps ( string callbackUrl, JToken message ) : void
UnregisterTrigger ( string callbackUrl ) : void

비공개 메소드들

메소드 설명
InMemoryTriggerStore ( ) : EventHubAPIApp.Models

메소드 상세

GetStore() 공개 메소드

public GetStore ( ) : List>.IDictionary
리턴 List>.IDictionary

RegisterTrigger() 공개 메소드

The method that registers Event Hub listeners and assigns them to a Receive event. When I receive an event from the event hub listener, I trigger the callbackURL
public RegisterTrigger ( EventHubInput input ) : Task
input EventHubAPIApp.Models.EventHubInput
리턴 Task

TriggerLogicApps() 공개 메소드

public TriggerLogicApps ( string callbackUrl, JToken message ) : void
callbackUrl string
message JToken
리턴 void

UnregisterTrigger() 공개 메소드

public UnregisterTrigger ( string callbackUrl ) : void
callbackUrl string
리턴 void