/// <summary> /// Initializes a new instance of the <see cref="ResourceHandler"/> class. /// </summary> private ResourceHandler(string mimeType, ResourceHandlerType type) { if (string.IsNullOrEmpty(mimeType)) { throw new ArgumentNullException("mimeType", "Please provide a valid mimeType"); } StatusCode = 200; StatusText = "OK"; MimeType = mimeType; Headers = new NameValueCollection(); Type = type; }
/// <summary> /// Initializes a new instance of the <see cref="ResourceHandler"/> class. /// </summary> private ResourceHandler(string mimeType, ResourceHandlerType type) { if(string.IsNullOrEmpty(mimeType)) { throw new ArgumentNullException("mimeType", "Please provide a valid mimeType"); } StatusCode = 200; StatusText = "OK"; MimeType = mimeType; Headers = new NameValueCollection(); Type = type; }