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
| Improve this Doc View SourceIOBehaviour
Gets information on the IO Behaviour of the Server.
Declaration
IOBehaviour IOBehaviour { get; }
Property Value
Type | Description |
---|---|
IOBehaviour |
Methods
| Improve this Doc 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. |
System.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. |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><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. |
System.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. |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.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. |
System.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. |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><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. |
System.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. |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><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. |
System.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. |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><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. |
System.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 |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IEnumerable<T><string>> |