private void SetVersion(object request) { Recorder.Trace(5L, TraceType.InfoTrace, "ExchangeProxy.SetVersion Request:", request); IDiscoveryVersionable discoveryVersionable = request as IDiscoveryVersionable; if (discoveryVersionable != null) { discoveryVersionable.ServerVersion = this.serverVersion; } }
/// <summary> /// Determines whether the specified versionable is compatible. /// </summary> /// <param name="versionable">The versionable.</param> /// <returns><c>true</c> if the specified versionable is compatible; otherwise, <c>false</c>.</returns> internal bool IsCompatible(IDiscoveryVersionable versionable) { // note: when ServerVersion is not set(i.e., => 0), we ignore compatible check on the client side. It will eventually fail server side schema check if incompatible return versionable.ServerVersion == 0 || versionable.ServerVersion >= MinimumServerVersion; }
/// <summary> /// Determines whether the specified versionable is compatible. /// </summary> /// <param name="versionable">The versionable.</param> /// <returns><c>true</c> if the specified versionable is compatible; otherwise, <c>false</c>.</returns> bool IsCompatible(IDiscoveryVersionable versionable) { // note: when ServerVersion is not set(i.e., => 0), we ignore compatible check on the client side. It will eventually fail server side schema check if incompatible return(versionable.ServerVersion == 0 || versionable.ServerVersion >= MinimumServerVersion); }