void PostEvent(ClientSessionEventKind eventKind) { var evnt = new ClientSessionEvent(this, eventKind); MainThread.Post(() => observable.Observers.OnNext(evnt)); evnt.Post(); }
void PostEvent(IObserver <ClientSessionEvent> observer, ClientSessionEventKind eventKind) => MainThread.Post(() => observer.OnNext(new ClientSessionEvent(this, eventKind)));
public ClientSessionEvent(ClientSession source, ClientSessionEventKind kind) { Timestamp = DateTime.UtcNow; Source = source; Kind = kind; }