Interface IWorkspaceProvider
An interface that provides access to either a list or single instance of Unity.DigitalTwins.Common.IWorkspace as the result of Task operations.
Namespace: Unity.DigitalTwins.Storage
Assembly: solution.dll
Syntax
public interface IWorkspaceProvider
Methods
GetWorkspaceAsync(String)
Returns a Task that results in an Unity.DigitalTwins.Common.IWorkspace when completed.
Declaration
Task<IWorkspace> GetWorkspaceAsync(string workspaceId)
Parameters
Type | Name | Description |
---|---|---|
String | workspaceId | A workspace Id. |
Returns
Type | Description |
---|---|
Task<Unity.DigitalTwins.Common.IWorkspace> |
ListWorkspacesAsync()
Returns a Task that results in a list of Unity.DigitalTwins.Common.IWorkspace when completed.
Declaration
Task<IEnumerable<IWorkspace>> ListWorkspacesAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<Unity.DigitalTwins.Common.IWorkspace>> |