Show / Hide Table of Contents

Interface IStreamUriParser

Defines a series of members to be implemented by a type that allows interpreting a Uri and obtaining a Stream from it.

Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.dll
Syntax
public interface IStreamUriParser

Properties

| Edit this page View Source

PreferFullTransfer

Gets a value that determines whether the Stream produced by this object requires being fully loaded into an in-memory read buffer.

Declaration
bool PreferFullTransfer { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

GetStream(Uri)

Gets a Stream that links to the requested resource, selecting the most appropriate method for obtaining said data stream.

Declaration
Stream? GetStream(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to open for reading.

Returns
Type Description
Stream

A Stream from which the resource pointed to by the Uri specified can be read.

| Edit this page View Source

GetStreamAsync(Uri)

Gets a Stream that links to the requested resource, selecting the most appropriate method for obtaining said data stream.

Declaration
Task<Stream?> GetStreamAsync(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to open for reading.

Returns
Type Description
Task<Stream>

A Stream from which the resource pointed to by the Uri specified can be read.

| Edit this page View Source

Handles(Uri)

Determines whether this IStreamUriParser can create a Stream from the specified Uri.

Declaration
bool Handles(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to check.

Returns
Type Description
bool

true if this IStreamUriParser can create a Stream from the specified Uri, false otherwise.

| Edit this page View Source

Open(Uri)

Opens a Stream from the Uri specified.

Declaration
Stream? Open(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to open for reading.

Returns
Type Description
Stream

A Stream from which the resource pointed to by the Uri specified can be read.

| Edit this page View Source

OpenFullTransfer(Uri)

Opens the Stream from the Uri specified, and fully loads it into a new Stream intermediate before returning it.

Declaration
Stream? OpenFullTransfer(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to open for reading.

Returns
Type Description
Stream

A Stream from which the resource pointed to by the Uri specified can be read.

| Edit this page View Source

OpenFullTransferAsync(Uri)

Opens the Stream from the Uri specified, and fully loads it into a new Stream intermediate asynchronously before returning it.

Declaration
Task<Stream?> OpenFullTransferAsync(Uri uri)
Parameters
Type Name Description
Uri uri

Uri to open for reading.

Returns
Type Description
Task<Stream>

A Stream from which the resource pointed to by the Uri specified can be read.

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX