/// <summary>Add a connection listener.</summary> /// <param name="listener">The listener.</param> public override void AddConnectionListener(IConnectionListener listener) { base.AddConnectionListener(listener); if (this.connection != null) { listener.OnCreate(this.connection); } }
public override void AddConnectionListener(IConnectionListener listener) { base.AddConnectionListener(listener); // If the connection is already alive we assume that the new listener wants to be notified if (Connection != null) { listener.OnCreate(Connection); } }
/// <summary>Add a connection listener.</summary> /// <param name="listener">The listener.</param> public override void AddConnectionListener(IConnectionListener listener) { base.AddConnectionListener(listener); // If the connection is already alive we assume that the new listener wants to be notified if (this.connection != null) { listener.OnCreate(this.connection); } }