Ejemplo n.º 1
0
        public void Disconnect(DisconnectWebRtcCommandArgs args)
        {
            if (args.ConnectionId != ConnectionId)
            {
                throw new Exception();
            }

            _peerConnection.Dispose();
        }
Ejemplo n.º 2
0
        private async Task Disconnect(DisconnectWebRtcCommandArgs args)
        {
            await InvokeOnClients(webRtcClient => webRtcClient.Disconnect(args));

            DisconnectCommandReceived?.Invoke(this, args);
        }
Ejemplo n.º 3
0
 public Task Disconnect(DisconnectWebRtcCommandArgs args)
 {
     webRtcClient.Disconnect(args.ConnectionId);
     return(Task.CompletedTask);
 }
Ejemplo n.º 4
0
 public Task Disconnect(DisconnectWebRtcCommandArgs args)
 {
     _peer.Disconnect(args);
     return(Task.CompletedTask);
 }
 public async Task Disconnect(DisconnectWebRtcCommandArgs args)
 {
     Console.WriteLine("Disconnect");
     await jsRuntime.InvokeVoidAsync("WebRtcHandlerManager.disconnect", handlerId, args.ConnectionId);
 }