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()); }
protected virtual void OnInfoReceived(ConnectionInfo info) { }