public void Reconnect() { EventQueue.Enqueue(new ReconnectEvent()); }
public void Reconnect(Uri source_uri) { EventQueue.Enqueue(new StartEvent(source_uri)); }
protected void Stop(StopReason reason) { EventQueue.Enqueue(new StopEvent(reason)); }
public void Stop() { EventQueue.Enqueue(new StopEvent(StopReason.UserShutdown)); }
public void Post(Host from, Atom packet) { EventQueue.Enqueue(new PostEvent(from, packet)); }
public void Start() { EventQueue.Enqueue(new StartEvent(this.SourceUri)); }
protected virtual void OnSourceConnectionStopped(object sender, StreamStoppedEventArgs args) { EventQueue.Enqueue(new ConnectionStoppedEvent(sender as ISourceConnection, args.StopReason)); }