Beispiel #1
0
        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");
            }
        }
Beispiel #2
0
 public void SendDynamicUIResponseMessage(DynamicUIResponse response)
 {
     SendDynamicUIResponseMessage(this, new DynamicUIArgs {
         HostName = response.HostName, Options = response.Options
     });
 }