Example #1
0
 public void OnActive(string topicPath, IRegisteredHandler registeredHandler, ITopicSourceUpdater topicSourceUpdater)
 {
     Log.Spew("Topic Active: \"" + topicPath + "\" (" + this.GetType().Name + ")");
     this.topicPath          = topicPath;
     this.topicSourceUpdater = topicSourceUpdater;
     UpdateContent(CreateInitialContent());
     OnActivated();
 }
 public void OnActive(string topicPath, IRegisteredHandler registeredHandler, ITopicSourceUpdater topicSourceUpdater)
 {
     Log.Spew("Topic Active: \"" + topicPath + "\" (" + this.GetType().Name + ")");
     this.topicPath = topicPath;
     this.topicSourceUpdater = topicSourceUpdater;
     UpdateContent(CreateInitialContent());
     OnActivated();
 }
 /// <summary>
 /// Called when the handler has been registered at the server and is now active.
 ///
 /// A session can register at most one a single handler of each type. If there is already a handler registered
 /// for the topic path the operation will fail, the registered handler will be closed, and the session error
 /// handler will be notified. To change the handler, first close the previous handler.
 /// </summary>
 public void OnActive(IRegisteredHandler registeredHandler)
 {
 }
Example #4
0
 /// <summary>
 /// Called when the handler has been successfully registered with the server.
 ///
 /// A session can register a single handler of each type for a given branch of the topic tree.  If there is
 /// already a handler registered for the topic path the operation will fail, <c>registeredHandler</c> will be closed,
 /// and the session error handler will be notified.  To change the handler, first close the previous handler.
 /// </summary>
 /// <param name="topicPath">The path that the handler is active for.</param>
 /// <param name="registeredHandler">Allows the handler to be closed.</param>
 void ITopicTreeHandler.OnActive(string topicPath, IRegisteredHandler registeredHandler)
 {
     onActive.SetResult(registeredHandler);
 }
 /// <summary>
 /// Indicates that the message hander was registered, and that it is active.
 /// </summary>
 public void OnActive(string topicPath, IRegisteredHandler registeredHandler)
 => WriteLine($"A message handler is registered for {topicPath}.");
 /// <summary>
 /// Called when the handler has been registered at the server and is now active.
 ///
 /// A session can register at most one a single handler of each type. If there is already a handler registered
 /// for the topic path the operation will fail, the registered handler will be closed, and the session error
 /// handler will be notified. To change the handler, first close the previous handler.
 /// </summary>
 public void OnActive( IRegisteredHandler registeredHandler )
 {
 }
 /// <summary>
 /// Called when the handler has been successfully registered with the server.
 ///
 /// A session can register a single handler of each type for a given branch of the topic tree. If there is
 /// already a handler registered for the topic path the operation will fail, <c>registeredHandler</c> will
 /// be closed, and the session error handler will be notified. To change the handler, first close the
 /// previous handler.
 /// </summary>
 /// <param name="topicPath">The path that the handler is active for.</param>
 /// <param name="registeredHandler">Allows the handler to be closed.</param>
 void ITopicTreeHandler.OnActive( string topicPath, IRegisteredHandler registeredHandler ) {
     onActive.SetResult( registeredHandler );
 }
 /// <summary>
 /// Called when the handler has been successfully registered with the server.
 ///
 /// A session can register a single handler of each type for a given branch of the topic tree. If there is
 /// already a handler registered for the topic path the operation will fail, <c>registeredHandler</c> will
 /// be closed, and the session error handler will be notified. To change the handler, first close the
 /// previous handler.
 /// </summary>
 /// <param name="topicPath">The path that the handler is active for.</param>
 /// <param name="registeredHandler">Allows the handler to be closed.</param>
 public void OnActive( string topicPath, IRegisteredHandler registeredHandler )
 {
 }
 /// <summary>
 /// Called when the handler has been successfully registered with the server.
 ///
 /// A session can register a single handler of each type for a given branch of the topic tree. If there is
 /// already a handler registered for the topic path the operation will fail, <c>registeredHandler</c> will
 /// be closed, and the session error handler will be notified. To change the handler, first close the
 /// previous handler.
 /// </summary>
 /// <param name="topicPath">The path that the handler is active for.</param>
 /// <param name="registeredHandler">Allows the handler to be closed.</param>
 public void OnActive(string topicPath, IRegisteredHandler registeredHandler)
 {
 }