private void ObjectTunnelClientConnection_MessageReceived(object sender, LibraryBase.Messages.Message e)
 {
     if (e is ObjectCarrier carrier)
     {
         ObjectReceived?.Invoke(this, carrier.Payload);
     }
 }
Exemple #2
0
 private void R_ObjectReceived(object sender, object e)
 {
     ObjectReceived?.Invoke(sender, e);
 }
 protected internal override void RaiseObjectReceived(IClientInfo client, object obj, Type objectType)
 {
     ObjectReceived?.Invoke(client, obj, objectType);
 }
Exemple #4
0
 public void OnObjectReceived(ObjectReceived callback)
 {
     objectReceived = callback;
 }
 protected virtual void OnObjectReceived(ObjectReceivedEventArgs e)
 {
     ObjectReceived?.Invoke(this, e);
 }
Exemple #6
0
 protected virtual void OnObjectReceived(object receivedObject)
 {
     ObjectReceived?.Invoke(this, receivedObject);
 }