C# 클래스 Riskified.SDK.Notifications.NotificationsHandler

파일 보기 프로젝트 열기: Riskified/sdk_net 1 사용 예제들

공개 메소드들

메소드 설명
NotificationsHandler ( string localListeningEndpoint, Action notificationReceived, string authToken, string shopDomain ) : System

Creates a notification handler on the specified endpoint

ReceiveNotifications ( ) : void

Runs the notification server This method is blocking and will not return until StopReceiveNotifications is called

StopReceiveNotifications ( ) : void

Stops the notifications server listener

비공개 메소드들

메소드 설명
RestartHttpListener ( ) : void

메소드 상세

NotificationsHandler() 공개 메소드

Creates a notification handler on the specified endpoint
public NotificationsHandler ( string localListeningEndpoint, Action notificationReceived, string authToken, string shopDomain ) : System
localListeningEndpoint string The endpoint for the notification server listener
notificationReceived Action Callback to be called on each notification arrival
authToken string The authentication token key of the merchant
shopDomain string The shop domain string as used for registration to Riskified
리턴 System

ReceiveNotifications() 공개 메소드

Runs the notification server This method is blocking and will not return until StopReceiveNotifications is called
Thrown when the listener was unable to start due to server network configuration errors Thrown when server is already running
public ReceiveNotifications ( ) : void
리턴 void

StopReceiveNotifications() 공개 메소드

Stops the notifications server listener
public StopReceiveNotifications ( ) : void
리턴 void