private void ObjectTunnelClientConnection_MessageReceived(object sender, LibraryBase.Messages.Message e) { if (e is ObjectCarrier carrier) { ObjectReceived?.Invoke(this, carrier.Payload); } }
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); }
public void OnObjectReceived(ObjectReceived callback) { objectReceived = callback; }
protected virtual void OnObjectReceived(ObjectReceivedEventArgs e) { ObjectReceived?.Invoke(this, e); }
protected virtual void OnObjectReceived(object receivedObject) { ObjectReceived?.Invoke(this, receivedObject); }