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); }
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)); }
public Task NotifyUser(TerminalNotificationDTO notificationMessage) { return(Task.FromResult(0)); }