/// <summary> /// Topic update received. This indicates an update to the state of a topic that is subscribed to. /// </summary> /// <param name="topicPath">the full topic path.</param><param name="content">the topic content. The context /// may contain more information about the nature of the content </param><param name="context"> the update /// context which may indicate whether the content represents the total state or a change to the state</param> public void OnTopicUpdate(string topicPath, IContent content, IUpdateContext context) { Console.WriteLine("{0}: {1}", topicPath, content.AsString()); }
/// <summary> /// Indicates that a message was received. /// </summary> public void OnMessage(ISessionId sessionId, string topicPath, IContent content, IReceiveContext context) => WriteLine($"Handler for {topicPath} has received message: {content.AsString()}.");