Class AsyncStorageCallbackArgs
Represents arguments passed to callbacks on success/failure of a async storage API call.
Inherited Members
Namespace: VDS.RDF.Storage
Assembly: dotNetRdf.dll
Syntax
public sealed class AsyncStorageCallbackArgs
Remarks
Primarily used to provide simple method signatures on the async storage API callbacks.
Constructors
| Edit this page View SourceAsyncStorageCallbackArgs(AsyncStorageOperation)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
AsyncStorageCallbackArgs(AsyncStorageOperation, IEnumerable<string>)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, IEnumerable<string> stores)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
IEnumerable<string> | stores | Enumeration of Store IDs. |
AsyncStorageCallbackArgs(AsyncStorageOperation, IEnumerable<string>, Exception)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, IEnumerable<string> stores, Exception e)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
IEnumerable<string> | stores | Enumeration of Store IDs. |
Exception | e | Error that occurred. |
AsyncStorageCallbackArgs(AsyncStorageOperation, IEnumerable<Uri>)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, IEnumerable<Uri> graphUris)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
IEnumerable<Uri> | graphUris | Enumeration of Graph URIs. |
AsyncStorageCallbackArgs(AsyncStorageOperation, Exception)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, Exception ex)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
Exception | ex | Error that occurred. |
AsyncStorageCallbackArgs(AsyncStorageOperation, string)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, string data)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
string | data | Data to return. |
AsyncStorageCallbackArgs(AsyncStorageOperation, string, IEnumerable<IStoreTemplate>)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, string storeID, IEnumerable<IStoreTemplate> templates)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
string | storeID | Store ID. |
IEnumerable<IStoreTemplate> | templates | Templates. |
AsyncStorageCallbackArgs(AsyncStorageOperation, string, Exception)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, string data, Exception e)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
string | data | Data to return. |
Exception | e | Error that occurred. |
AsyncStorageCallbackArgs(AsyncStorageOperation, string, object)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, string query, object queryResults)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
string | query | SPARQL Query. |
object | queryResults | Results to return. |
AsyncStorageCallbackArgs(AsyncStorageOperation, string, object, Exception)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, string query, object queryResults, Exception e)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
string | query | SPARQL Query. |
object | queryResults | Results to return. |
Exception | e | Error that occurred. |
AsyncStorageCallbackArgs(AsyncStorageOperation, string, IRdfHandler, ISparqlResultsHandler)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, string query, IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
string | query | SPARQL Query. |
IRdfHandler | rdfHandler | RDF Handler to return. |
ISparqlResultsHandler | resultsHandler | Results Handler to return. |
AsyncStorageCallbackArgs(AsyncStorageOperation, string, IRdfHandler, ISparqlResultsHandler, Exception)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, string query, IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, Exception e)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
string | query | SPARQL Query. |
IRdfHandler | rdfHandler | RDF Handler. |
ISparqlResultsHandler | resultsHandler | Results Handler. |
Exception | e | Error that occurred. |
AsyncStorageCallbackArgs(AsyncStorageOperation, string, IAsyncStorageProvider, Exception)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, string storeID, IAsyncStorageProvider provider, Exception e)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
string | storeID | Store ID. |
IAsyncStorageProvider | provider | Storage Provider. |
Exception | e | Error that occurred. |
AsyncStorageCallbackArgs(AsyncStorageOperation, string, IStoreTemplate)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, string storeID, IStoreTemplate template)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
string | storeID | Store ID. |
IStoreTemplate | template | Template. |
AsyncStorageCallbackArgs(AsyncStorageOperation, Uri)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
Uri | graphUri | URI of the affected Graph. |
AsyncStorageCallbackArgs(AsyncStorageOperation, Uri, Exception)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, Uri graphUri, Exception e)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
Uri | graphUri | URI of the affected Graph. |
Exception | e | Error that occurred. |
AsyncStorageCallbackArgs(AsyncStorageOperation, IGraph)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, IGraph g)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
IGraph | g | Graph to return. |
AsyncStorageCallbackArgs(AsyncStorageOperation, IGraph, Exception)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, IGraph g, Exception e)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
IGraph | g | Graph to return. |
Exception | e | Error that occurred. |
AsyncStorageCallbackArgs(AsyncStorageOperation, IRdfHandler)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, IRdfHandler handler)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
IRdfHandler | handler | Handler to return. |
AsyncStorageCallbackArgs(AsyncStorageOperation, IRdfHandler, Exception)
Creates new callback arguments.
Declaration
public AsyncStorageCallbackArgs(AsyncStorageOperation operation, IRdfHandler handler, Exception e)
Parameters
Type | Name | Description |
---|---|---|
AsyncStorageOperation | operation | Operation. |
IRdfHandler | handler | Handler to return. |
Exception | e | Error that occurred. |
Properties
| Edit this page View SourceAvailableTemplates
Gets the templates that were created (if any).
Declaration
public IEnumerable<IStoreTemplate> AvailableTemplates { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IStoreTemplate> |
Error
Gets the error that occurred (for failed operations).
Declaration
public Exception Error { get; }
Property Value
Type | Description |
---|---|
Exception |
Graph
Gets the Graph that was saved/loaded (if applicable).
Declaration
public IGraph Graph { get; }
Property Value
Type | Description |
---|---|
IGraph |
GraphUri
Gets the URI of the Graph affected by the operation.
Declaration
public Uri GraphUri { get; }
Property Value
Type | Description |
---|---|
Uri |
GraphUris
Gets the list of Graph URIs (if applicable).
Declaration
public IEnumerable<Uri> GraphUris { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Uri> |
Operation
Gets the operation that was performed.
Declaration
public AsyncStorageOperation Operation { get; }
Property Value
Type | Description |
---|---|
AsyncStorageOperation |
Query
Gets the SPARQL Query (if applicable).
Declaration
public string Query { get; }
Property Value
Type | Description |
---|---|
string |
QueryResults
Gets the Query Results (if applicable).
Declaration
public object QueryResults { get; }
Property Value
Type | Description |
---|---|
object |
RdfHandler
Gets the RDF Handler used (if applicable).
Declaration
public IRdfHandler RdfHandler { get; }
Property Value
Type | Description |
---|---|
IRdfHandler |
ResultsHandler
Gets the Results Handler used (if applicable).
Declaration
public ISparqlResultsHandler ResultsHandler { get; }
Property Value
Type | Description |
---|---|
ISparqlResultsHandler |
StorageProvider
Gets the Storage Provider (if applicable).
Declaration
public IAsyncStorageProvider StorageProvider { get; }
Property Value
Type | Description |
---|---|
IAsyncStorageProvider |
Remarks
For the GetStore operation this will be the reference to the newly returned store instance.
StoreID
Gets the Store ID (if applicable).
Declaration
public string StoreID { get; }
Property Value
Type | Description |
---|---|
string |
StoreIDs
Gets the list of Store IDs (if applicable).
Declaration
public IEnumerable<string> StoreIDs { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Template
Gets the template that was created (if any).
Declaration
public IStoreTemplate Template { get; }
Property Value
Type | Description |
---|---|
IStoreTemplate |
Updates
Gets the SPARQL Update (if applicable).
Declaration
public string Updates { get; }
Property Value
Type | Description |
---|---|
string |
WasSuccessful
Gets whether the async operation succeeded (no error occurred).
Declaration
public bool WasSuccessful { get; }
Property Value
Type | Description |
---|---|
bool |