protected async Task PushUserNotification(string type, string subject, string message)
 {
     var notificationMsg = new TerminalNotificationDTO
     {
         Type            = type,
         Subject         = subject,
         Message         = message,
         ActivityName    = MyTemplate.Name,
         ActivityVersion = MyTemplate.Version,
         TerminalName    = MyTemplate.Terminal.Name,
         TerminalVersion = MyTemplate.Terminal.Version
     };
     await HubCommunicator.NotifyUser(notificationMsg);
 }
Esempio n. 2
0
 public async Task NotifyUser(TerminalNotificationDTO notificationMessage)
 {
     var hubUrl = $"{GetHubUrlWithApiVersion()}/notifications";
     var uri    = new Uri(hubUrl);
     await _restfulServiceClient.PostAsync(uri, notificationMessage, null, await GetHMACHeader(uri, notificationMessage));
 }
Esempio n. 3
0
 public Task NotifyUser(TerminalNotificationDTO notificationMessage)
 {
     return(Task.FromResult(0));
 }