public void SendConsoleMessage(string message) { var consoleMessage = new ConsoleMessage { Message = message }; serverEvents.NotifySubscription(subscriptionId, consoleMessage, channel); }
public static void NotifySubscription(this IServerEvents server, string subscriptionId, object message, string channel = null) { server.NotifySubscription(subscriptionId, Selector.Id(message.GetType()), message, channel); }
private void PublishStatus(SubscriptionInfo subscriptionInfo, Status status) { _logger.DebugFormat("Notifying: {0}", status.Text); _serverEvents.NotifySubscription(subscriptionInfo.SubscriptionId, "cmd.status", status); }