Exemplo n.º 1
0
        /// <summary>
        /// The stream object received.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void StreamObjectReceived(object sender, ReceivedObjectEventArgs e)
        {
            e.MessageObject.Sender = this;
            this.bus.Publish(e.MessageObject);

            EventHandler <ReceivedObjectEventArgs> handler = this.ObjectReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// The client_ object received.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void client_ObjectReceived(object sender, ReceivedObjectEventArgs e)
 {
     Console.WriteLine("Data received also through event handler");
     this.reply = e.MessageObject;
     mrep.Set();
 }
Exemplo n.º 3
0
 /// <summary>
 /// The client_ object received.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void client_ObjectReceived(object sender, ReceivedObjectEventArgs e)
 {
     this.countdown2.Signal();
 }
Exemplo n.º 4
0
 /// <summary>
 /// The stream object received.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void StreamObjectReceived(object sender, ReceivedObjectEventArgs e)
 {
     this.Publish(e.MessageObject);
 }
Exemplo n.º 5
0
 /// <summary>
 /// The client_ object received.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void client_ObjectReceived(object sender, ReceivedObjectEventArgs e)
 {
     this.reply = e.MessageObject;
     this.mrep.Set();
 }