/// <summary>
 /// Handler for IUserStateManager.UserStateChanged event.
 /// </summary>
 /// <param name="sender">object sending the event</param>
 /// <param name="e">event arguments</param>
 private async void OnUserStateChanged(object sender, UserStateChangedEventArgs e)
 {
     if (this.interactionIsEnabled)
     {
         // If enabled, forward all user state events to client
         await this.ownerContext.SendEventMessageAsync(e.Message);
     }
 }
 /// <summary>
 /// Handler for IUserStateManager.UserStateChanged event.
 /// </summary>
 /// <param name="sender">object sending the event</param>
 /// <param name="e">event arguments</param>
 private async void OnUserStateChanged(object sender, UserStateChangedEventArgs e)
 {
     if (this.interactionIsEnabled)
     {
         // If enabled, forward all user state events to client
         await this.ownerContext.SendEventMessageAsync(e.Message);
     }
 }