Beispiel #1
0
        protected override void OnInfoReceived(ConnectionInfo info)
        {
            var clientInfo = info as ServerConnectionInfo;
              if (clientInfo == null)
            throw new InvalidOperationException("info isn't ClientConnectionInfo");

              if (!string.Equals(clientInfo.ApiName, ClientModel.Api.Name, StringComparison.OrdinalIgnoreCase))
            throw new ModelException(ErrorCode.APINotSupported, clientInfo.ApiName);

              ClientModel.Notifier.Connected(new ConnectEventArgs());
        }
Beispiel #2
0
 protected virtual void OnInfoReceived(ConnectionInfo info)
 {
 }