Show / Hide Table of Contents

Interface IAsyncStorageServer

Interface for storage providers which are capable of managing multiple stores asynchronously.

Inherited Members
System.IDisposable.Dispose()
Namespace: VDS.RDF.Storage.Management
Assembly: dotNetRdf.dll
Syntax
public interface IAsyncStorageServer : IDisposable

Properties

| Improve this Doc View Source

IOBehaviour

Gets information on the IO Behaviour of the Server.

Declaration
IOBehaviour IOBehaviour { get; }
Property Value
Type Description
IOBehaviour

Methods

| Improve this Doc View Source

CreateStore(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.

| Improve this Doc View Source

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>
| Improve this Doc View Source

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.

| Improve this Doc View Source

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
| Improve this Doc View Source

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.

| Improve this Doc View Source

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>>
| Improve this Doc View Source

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.

| Improve this Doc View Source

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>
| Improve this Doc View Source

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.

| Improve this Doc View Source

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>
| Improve this Doc View Source

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.

| Improve this Doc View Source

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>>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • IOBehaviour
  • Methods
    • CreateStore(IStoreTemplate, AsyncStorageCallback, object)
    • CreateStoreAsync(IStoreTemplate, CancellationToken)
    • DeleteStore(string, AsyncStorageCallback, object)
    • DeleteStoreAsync(string, CancellationToken)
    • GetAvailableTemplates(string, AsyncStorageCallback, object)
    • GetAvailableTemplatesAsync(string, CancellationToken)
    • GetDefaultTemplate(string, AsyncStorageCallback, object)
    • GetDefaultTemplateAsync(string, CancellationToken)
    • GetStore(string, AsyncStorageCallback, object)
    • GetStoreAsync(string, CancellationToken)
    • ListStores(AsyncStorageCallback, object)
    • ListStoresAsync(CancellationToken)
  • Extension Methods
Back to top Generated by DocFX