/// <summary> /// Initializes a new instance of the <see cref="CacheServiceException"/> class. /// </summary> public CacheServiceException(string message, Exception innerException, CacheErrorReasonCode reasonCode) : base(message, innerException) { ReasonCode = reasonCode; }
public void ReasonCodeSerializesToStream(CacheErrorReasonCode reasonCode) { SerializesToStream(new CacheServiceException("Error message", reasonCode)); }