/// <summary> /// Initializes a new instance of the <see cref="ContentResourceInfo"/> class based on a provided <see cref="StreamResourceInfo"/>. /// </summary> /// <param name="streamResourceInfo">Stream resource information.</param> /// <param name="resolutionType">The resolution method use to fetch the content.</param> public ContentResourceInfo(StreamResourceInfo streamResourceInfo, UriResolutionType resolutionType) : this(streamResourceInfo.Stream, streamResourceInfo.ContentType, resolutionType) { }
/// <summary> /// Initializes a new instance of the <see cref="ContentResourceInfo"/> class based on a provided stream. /// </summary> /// <param name="stream">The reference stream.</param> /// <param name="contentType">The Multipurpose Internet Mail Extensions (MIME) content type of the stream.</param> /// <param name="resolutionType">The resolution method use to fetch the content.</param> public ContentResourceInfo(Stream stream, string contentType, UriResolutionType resolutionType) : base(stream, contentType) { ResolutionType = resolutionType; }