Class HostResourceTypeBase<T>
Base class for host-provided resource types.
Assembly: WaaS.Core.dll
View Source
Declaration
public abstract class HostResourceTypeBase<T> : IHostResourceType<T>, IResourceType, IType, ISortedExportable, ISorted
Implements:
WaaS.ComponentModel.Binding.IHostResourceType<T>, WaaS.ComponentModel.Runtime.IResourceType, WaaS.ComponentModel.Runtime.IType, WaaS.ComponentModel.Runtime.ISortedExportable, WaaS.ComponentModel.Runtime.ISorted
Properties
Instance
View Source
Declaration
public virtual IInstance? Instance { get; }
Methods
ToHostResource(uint)
View Source
Declaration
public T ToHostResource(uint resourceId)
Returns
<T>
Parameters
| Type | Name | 
|---|---|
| System.UInt32 | resourceId | 
AllocateResourceId(T)
View Source
Declaration
public uint AllocateResourceId(T hostResource)
Returns
System.UInt32
Parameters
| Type | Name | 
|---|---|
| <T> | hostResource | 
New(uint)
View Source
Declaration
public uint New(uint rep)
Returns
System.UInt32
Parameters
| Type | Name | 
|---|---|
| System.UInt32 | rep | 
Drop(uint)
View Source
Declaration
public void Drop(uint index)
Parameters
| Type | Name | 
|---|---|
| System.UInt32 | index | 
Rep(uint)
View Source
Declaration
public uint Rep(uint index)
Returns
System.UInt32
Parameters
| Type | Name | 
|---|---|
| System.UInt32 | index | 
ValidateEquals(IType)
View Source
Declaration
public bool ValidateEquals(IType other)