C# Класс Riskified.SDK.Notifications.NotificationsHandler

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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