Class ImageCollectionPluginBase
An implementation of IImageCollection which delegates all member access to the Inner implementation,
unless the member is overridden in a derived class which changes the behavior.
Inheritance
System.Object
ImageCollectionPluginBase
Implements
IAsyncDisposable
Assembly: StrixMusic.Sdk.dll
Syntax
public class ImageCollectionPluginBase : object, IModelPlugin, IImageCollection, IImageCollectionBase, ICollectionBase, IAppModel, IMerged<ICoreImageCollection>, IMerged
Constructors
|
Improve this Doc
View Source
Declaration
protected ImageCollectionPluginBase(ModelPluginMetadata registration, IImageCollection inner)
Parameters
Type |
Name |
Description |
ModelPluginMetadata |
registration |
Metadata about the plugin which was provided during registration.
|
IImageCollection |
inner |
The implementation which all member access is delegated to, unless the member is overridden in a derived class which changes the behavior.
|
Properties
|
Improve this Doc
View Source
Inner
Declaration
public IImageCollection Inner { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public ModelPluginMetadata Metadata { get; }
Property Value
|
Improve this Doc
View Source
Sources
Declaration
public IReadOnlyList<ICoreImageCollection> Sources { get; }
Property Value
|
Improve this Doc
View Source
TotalImageCount
Declaration
public virtual int TotalImageCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
AddImageAsync(IImage, Int32, CancellationToken)
Declaration
public virtual Task AddImageAsync(IImage image, int index, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
IImage |
image |
|
System.Int32 |
index |
|
CancellationToken |
cancellationToken |
|
Returns
|
Improve this Doc
View Source
DisposeAsync()
Declaration
public virtual ValueTask DisposeAsync()
Returns
Type |
Description |
ValueTask |
|
|
Improve this Doc
View Source
Equals(ICoreImageCollection)
Declaration
public virtual bool Equals(ICoreImageCollection other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetImagesAsync(Int32, Int32, CancellationToken)
Declaration
public virtual IAsyncEnumerable<IImage> GetImagesAsync(int limit, int offset, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.Int32 |
limit |
|
System.Int32 |
offset |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
IAsyncEnumerable<IImage> |
|
|
Improve this Doc
View Source
IsAddImageAvailableAsync(Int32, CancellationToken)
Declaration
public virtual Task<bool> IsAddImageAvailableAsync(int index, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
|
Improve this Doc
View Source
IsRemoveImageAvailableAsync(Int32, CancellationToken)
Declaration
public virtual Task<bool> IsRemoveImageAvailableAsync(int index, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
|
Improve this Doc
View Source
RemoveImageAsync(Int32, CancellationToken)
Declaration
public virtual Task RemoveImageAsync(int index, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
CancellationToken |
cancellationToken |
|
Returns
Events
|
Improve this Doc
View Source
ImagesChanged
Declaration
public virtual event CollectionChangedEventHandler<IImage>? ImagesChanged
Event Type
Type |
Description |
System.Nullable<CollectionChangedEventHandler<IImage>> |
|
|
Improve this Doc
View Source
ImagesCountChanged
Declaration
public virtual event EventHandler<int>? ImagesCountChanged
Event Type
Type |
Description |
System.Nullable<EventHandler<System.Int32>> |
|
|
Improve this Doc
View Source
SourcesChanged
Declaration
public event EventHandler? SourcesChanged
Event Type
Type |
Description |
System.Nullable<EventHandler> |
|
Implements
IAsyncDisposable
IEquatable<>
IDelegatable<>