private Task OnReleaseNotificationAsync(ReleaseNotification notification, CancellationToken cancellationToken = default(CancellationToken)) { return Context.Connection.TypedBroadcast(notification); }
public async Task<IHttpActionResult> PostReleaseNotificationAsync([NakedBody]string message = null, bool critical = false) { var notification = new ReleaseNotification { Critical = critical, Date = DateTimeOffset.UtcNow, Message = message }; await _messagePublisher.PublishAsync(notification); return Ok(notification); }