Class MetadataProviderExtensions
Inherited Members
Namespace: Unity.Cloud.Metadata
Syntax
public static class MetadataProviderExtensions
Methods
GetAllIdsAsync(IMetadataProvider, CancellationToken)
Gets all owner IDs in the scene.
Declaration
public static async Task<IEnumerable<InstanceId>> GetAllIdsAsync(this IMetadataProvider metadataProvider, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IMetadataProvider | metadataProvider | The metadata provider. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IEnumerable<InstanceId>> | The list of ids |
GetAllMetadataAsync(IMetadataProvider, CancellationToken)
Gets all metadata from all owners in the scene.
Declaration
public static async Task<MatchCollection> GetAllMetadataAsync(this IMetadataProvider metadataProvider, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IMetadataProvider | metadataProvider | The metadata provider. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<MatchCollection> | The list of |
Query(IMetadataProvider)
Gets a MetadataQueryBuilder
to build fluent queries.
Declaration
public static MetadataQueryBuilder Query(this IMetadataProvider metadataProvider)
Parameters
Type | Name | Description |
---|---|---|
IMetadataProvider | metadataProvider |
Returns
Type | Description |
---|---|
MetadataQueryBuilder | A new MetadataQueryBuilder |