public virtual void OnUserJoined(object sender, UserJoinedEventArgs e) { }
private async void OnUserJoined(object sender, UserJoinedEventArgs e) { await Task.Run(() => { foreach (var module in this.Modules) { module.OnUserJoined(this, e); } }); }
/// <summary> /// The on user joined. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> public override async void OnUserJoined(object sender, UserJoinedEventArgs e) { var request = sender as IRequest; IResponse response = request.CreateResponse(); await request.SendResponseAsync(response); }
protected virtual void OnUserJoined(UserJoinedEventArgs e) { var handler = this.UserJoined; if (handler != null) { handler(this, e); } }