public void Validate() { RetryPolicy.ArgumentNotNull("RetryPolicy"); ArgumentGuardExtensions.ArgumentNotNegative(TimeoutMillis, "TimeoutMillis"); ArgumentGuardExtensions.ArgumentNotNegative(ReceiveBufferSize, "ReceiveBufferSize"); ArgumentGuardExtensions.ArgumentNotNegative(SerializationBufferSize, "SerializationBufferSize"); ArgumentGuardExtensions.ArgumentNotNegative(Port, "Port"); }
public void Validate() { BaseUri.ArgumentNotNull(nameof(BaseUri)); ArgumentGuardExtensions.ArgumentNotNegative((int)Timeout.TotalMilliseconds, nameof(Timeout)); }