public async void SendDynamicUIResponseMessage(List <string> options) { try { var response = new DynamicUIResponse { HostName = this.username, HostConnectionId = this.messageHubConnection.ConnectionId, Options = options }; await this.messageHubConnection.InvokeAsync("SendDynamicUIResponseMessage", response); } catch (Exception e) { Logger.Instance.Error(e.Message, "SendResponseMessage"); } }
public void SendDynamicUIResponseMessage(DynamicUIResponse response) { SendDynamicUIResponseMessage(this, new DynamicUIArgs { HostName = response.HostName, Options = response.Options }); }