Class AsyncStorageCallbackArgs
Represents arguments passed to callbacks on success/failure of a async storage API call.
Inheritance
System.Object
AsyncStorageCallbackArgs
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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
| Improve this Doc 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. |
System.Collections.Generic.IEnumerable<System.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. |
System.Collections.Generic.IEnumerable<System.String> | stores | Enumeration of Store IDs. |
System.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. |
System.Collections.Generic.IEnumerable<System.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. |
System.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. |
System.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. |
System.String | storeID | Store ID. |
System.Collections.Generic.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. |
System.String | data | Data to return. |
System.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. |
System.String | query | SPARQL Query. |
System.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. |
System.String | query | SPARQL Query. |
System.Object | queryResults | Results to return. |
System.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. |
System.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. |
System.String | query | SPARQL Query. |
IRdfHandler | rdfHandler | RDF Handler. |
ISparqlResultsHandler | resultsHandler | Results Handler. |
System.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. |
System.String | storeID | Store ID. |
IAsyncStorageProvider | provider | Storage Provider. |
System.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. |
System.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. |
System.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. |
System.Uri | graphUri | URI of the affected Graph. |
System.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. |
System.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. |
System.Exception | e | Error that occurred. |
Properties
| Improve this Doc View SourceAvailableTemplates
Gets the templates that were created (if any).
Declaration
public IEnumerable<IStoreTemplate> AvailableTemplates { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IStoreTemplate> |
Error
Gets the error that occurred (for failed operations).
Declaration
public Exception Error { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Uri |
GraphUris
Gets the list of Graph URIs (if applicable).
Declaration
public IEnumerable<Uri> GraphUris { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.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 |
---|---|
System.String |
QueryResults
Gets the Query Results (if applicable).
Declaration
public object QueryResults { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.String |
StoreIDs
Gets the list of Store IDs (if applicable).
Declaration
public IEnumerable<string> StoreIDs { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.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 |
---|---|
System.String |
WasSuccessful
Gets whether the async operation succeeded (no error occurred).
Declaration
public bool WasSuccessful { get; }
Property Value
Type | Description |
---|---|
System.Boolean |