Exemplo n.º 1
0
        public void SendConsoleMessage(string message)
        {
            var consoleMessage = new ConsoleMessage {
                Message = message
            };

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