public override StreamContext ChangePath(string relativePath) { if (relativePath == null) { throw new ArgumentNullException(nameof(relativePath)); } UriBuilder baseUri = new UriBuilder(new Uri(_uri, relativePath)); return(StreamContext.FromSource(baseUri.Uri)); }
public static object FromSource(Type componentType, Uri uri) { if (componentType == null) { throw new ArgumentNullException("componentType"); } if (uri == null) { throw new ArgumentNullException("uri"); } return(FromStreamContext(componentType, StreamContext.FromSource(uri))); }