Interface IMediaMounter
Inherited Members
System.IDisposable.Dispose()
Namespace: MediaBrowser.Model.IO
Assembly: MediaBrowser.Model.dll
Syntax
public interface IMediaMounter : IDisposable
Properties
Name
Gets the name.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Methods
CanMount(ReadOnlySpan<Char>, ReadOnlySpan<Char>)
Determines whether this instance can mount the specified path.
Declaration
bool CanMount(ReadOnlySpan<char> mediaPath, ReadOnlySpan<char> container)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Char> | mediaPath | The media path. |
System.ReadOnlySpan<System.Char> | container | The container. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Mount(ReadOnlyMemory<Char>, ReadOnlyMemory<Char>, CancellationToken)
Mounts the specified media path.
Declaration
Task<IMediaMount> Mount(ReadOnlyMemory<char> mediaPath, ReadOnlyMemory<char> container, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Char> | mediaPath | The media path. |
System.ReadOnlyMemory<System.Char> | container | The container. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IMediaMount> | IMediaMount. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | mediaPath |
System.IO.IOException | Unable to create mount. |