private async Task OnConnectionChanged(ConnectionChangedType type, string connectionId) { if (ConnectionChanged != null) { await ConnectionChanged(this, new ConnectionChangedEventArgs(type, connectionId)); } }
public ConnectionChangedEventArgs(ConnectionChangedType type, string connectionId) { Type = type; ConnectionId = connectionId; }