コード例 #1
0
            public Task OnStateChanged(Copren.Net.Core.Connection.Client client, bool fromServer, object state)
            {
                // Ignore peer updates
                if (!fromServer)
                {
                    return(Task.CompletedTask);
                }

                return(Task.FromResult(true));
            }
コード例 #2
0
 public Task OnPeerStateChanged(Copren.Net.Core.Connection.Client client, Guid peerId, object state)
 {
     _logger.Information("Peer {PeerId:s} reported state = {Position}", peerId, state);
     return(Task.CompletedTask);
 }