public void ConfigureMicrophone(MicrophoneConfig config) { Task.Run(() => { Debug.WriteLine("VoipChannel.ConfigureMicrophone Muted=" + (config.Muted ? "yes" : "no")); Context.WithState(st => { return(Task.Run(() => { Context.MicrophoneMuted = config.Muted; })); }).Wait(); }); }
public IAsyncAction ConfigureMicrophoneAsync(MicrophoneConfig config) { return(InvokeHubChannelAsync <ICallChannel>(config).AsTask().AsAsyncAction()); }
public IAsyncAction ConfigureMicrophoneAsync(MicrophoneConfig config) { return(Context.WithContextAction(cx => { cx.MicrophoneMuted = config.Muted; }).AsAsyncAction()); }
public void ConfigureMicrophone(MicrophoneConfig config) { InvokeHubChannel <IVoipChannel>(config); }