Interface IAsyncStorageServer
Interface for storage providers which are capable of managing multiple stores asynchronously.
Inherited Members
Namespace: VDS.RDF.Storage.Management
Assembly: dotNetRdf.dll
Syntax
public interface IAsyncStorageServer : IDisposable
Properties
| Edit this page View SourceIOBehaviour
Gets information on the IO Behaviour of the Server.
Declaration
IOBehaviour IOBehaviour { get; }
Property Value
Type | Description |
---|---|
IOBehaviour |
Methods
| Edit this page View SourceCreateStore(IStoreTemplate, AsyncStorageCallback, object)
Creates a store asynchronously.
Declaration
[Obsolete("This method is obsolete and will be removed in a future release. Replaced by CreateStoreAsync.")]
void CreateStore(IStoreTemplate template, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
IStoreTemplate | template | Template for the store to be created. |
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to the callback. |
Remarks
Behaviour with regards to whether creating a store overwrites an existing store with the same ID is at the discretion of the implementation and SHOULD be documented in an implementations comments.
CreateStoreAsync(IStoreTemplate, CancellationToken)
Creates a store asynchronously.
Declaration
Task<string> CreateStoreAsync(IStoreTemplate template, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IStoreTemplate | template | Template for the store to be created. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<string> |
DeleteStore(string, AsyncStorageCallback, object)
Deletes a store asynchronously.
Declaration
[Obsolete("This method is obsolete and will be removed in a future release. Replaced by DeleteStoreAsync.")]
void DeleteStore(string storeID, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
string | storeID | ID of the store to delete. |
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to the callback. |
DeleteStoreAsync(string, CancellationToken)
Deletes a store asynchronously.
Declaration
Task DeleteStoreAsync(string storeId, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | storeId | ID of the store to delete. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
GetAvailableTemplates(string, AsyncStorageCallback, object)
Gets all available templates for creating a store with the given ID.
Declaration
[Obsolete("This method is obsolete and will be removed in a future release. Replaced by GetAvailableTemplatesAsync.")]
void GetAvailableTemplates(string id, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID. |
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to the callback. |
GetAvailableTemplatesAsync(string, CancellationToken)
Gets all available templates for creating a store with the given ID.
Declaration
Task<IEnumerable<IStoreTemplate>> GetAvailableTemplatesAsync(string id, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | id | The store ID. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IEnumerable<IStoreTemplate>> |
GetDefaultTemplate(string, AsyncStorageCallback, object)
Gets a default template for creating a store with the given ID.
Declaration
[Obsolete("This method is obsolete and will be removed in a future release. Replaced by GetDefaultTemplateAsync.")]
void GetDefaultTemplate(string id, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID. |
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to the callback. |
GetDefaultTemplateAsync(string, CancellationToken)
Gets a default template for creating a store with the given ID.
Declaration
Task<IStoreTemplate> GetDefaultTemplateAsync(string id, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | id | The store ID. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IStoreTemplate> |
GetStore(string, AsyncStorageCallback, object)
Gets a store asynchronously.
Declaration
[Obsolete("This method is obsolete and will be removed in a future release. Replaced by GetStoreAsync.")]
void GetStore(string storeId, AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
string | storeId | Store ID. |
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to the callback. |
GetStoreAsync(string, CancellationToken)
Gets a store asynchronously.
Declaration
Task<IAsyncStorageProvider> GetStoreAsync(string storeId, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
string | storeId | Store ID. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IAsyncStorageProvider> |
ListStores(AsyncStorageCallback, object)
Lists the available stores asynchronously.
Declaration
[Obsolete("This method is obsolete and will be removed in a future release. Replaced by ListStoresAsync.")]
void ListStores(AsyncStorageCallback callback, object state)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageCallback | callback | Callback. |
object | state | State to pass to the callback. |
ListStoresAsync(CancellationToken)
Lists the available stores asynchronously.
Declaration
Task<IEnumerable<string>> ListStoresAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<IEnumerable<string>> |