Show / Hide Table of Contents

Class BaseAsyncHttpConnector

Abstract Base Class for HTTP Based IAsyncStorageProvider implementations.
Inheritance
System.Object
BaseHttpConnector
BaseAsyncHttpConnector
BaseSesameHttpProtocolConnector
BaseStardogConnector
FourStoreConnector
SparqlHttpProtocolConnector
Implements
IAsyncStorageProvider
IStorageCapabilities
System.IDisposable
Inherited Members
BaseHttpConnector.SetProxy(String)
BaseHttpConnector.SetProxy(Uri)
BaseHttpConnector.Proxy
BaseHttpConnector.ClearProxy()
BaseHttpConnector.SetProxyCredentials(String, String)
BaseHttpConnector.SetProxyCredentials(String, String, String)
BaseHttpConnector.ProxyCredentials
BaseHttpConnector.ClearProxyCredentials()
BaseHttpConnector.Timeout
BaseHttpConnector.Username
BaseHttpConnector.Password
BaseHttpConnector.ApplyRequestOptions(HttpWebRequest)
BaseHttpConnector.SerializeStandardConfig(INode, ConfigurationSerializationContext)
BaseHttpConnector.SetCredentials(String, String)
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 abstract class BaseAsyncHttpConnector : BaseHttpConnector, IAsyncStorageProvider, IStorageCapabilities, IDisposable
Remarks

It is expected that most classes extending from this will also then implement IStorageProvider separately for their synchronous communication, this class purely provides partial helper implementations for the asynchronous communication.

Properties

| Improve this Doc View Source

AsyncParentServer

Gets the parent server (if any).
Declaration
public virtual IAsyncStorageServer AsyncParentServer { get; }
Property Value
Type Description
IAsyncStorageServer
| Improve this Doc View Source

DeleteSupported

Gets whether the Store supports Graph deletion via the DeleteGraph(Uri, AsyncStorageCallback, Object) method.
Declaration
public abstract bool DeleteSupported { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IOBehaviour

Gets the IO Behaviour of the Store.
Declaration
public abstract IOBehaviour IOBehaviour { get; }
Property Value
Type Description
IOBehaviour
| Improve this Doc View Source

IsReadOnly

Gets whether the Store is read only.
Declaration
public abstract bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsReady

Indicates whether the Store is ready to accept requests.
Declaration
public abstract bool IsReady { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ListGraphsSupported

Gets whether the Store supports listing graphs via the ListGraphs(AsyncStorageCallback, Object) method.
Declaration
public abstract bool ListGraphsSupported { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ParentServer

Gets the parent server (if any).
Declaration
public virtual IStorageServer ParentServer { get; }
Property Value
Type Description
IStorageServer
| Improve this Doc View Source

UpdateSupported

Gets whether the Store supports Triple level updates via the UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object) method.
Declaration
public abstract bool UpdateSupported { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

DeleteGraph(String, AsyncStorageCallback, Object)

Deletes a Graph from the Store.
Declaration
public abstract void DeleteGraph(string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
System.String graphUri URI of the Graph to delete.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

DeleteGraph(Uri, AsyncStorageCallback, Object)

Deletes a Graph from the Store.
Declaration
public virtual void DeleteGraph(Uri graphUri, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
System.Uri graphUri URI of the Graph to delete.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

DeleteGraphAsync(HttpWebRequest, Boolean, String, AsyncStorageCallback, Object)

Helper method for doing async delete operations, callers just need to provide an appropriately prepared HTTP request.
Declaration
protected void DeleteGraphAsync(HttpWebRequest request, bool allow404, string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
System.Net.HttpWebRequest request HTTP request.
System.Boolean allow404 Whether a 404 response counts as success.
System.String graphUri URI of the Graph to delete.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

Dispose()

Disposes of the Store.
Declaration
public abstract void Dispose()
| Improve this Doc View Source

ListGraphs(AsyncStorageCallback, Object)

Lists the Graphs in the Store asynchronously.
Declaration
public virtual void ListGraphs(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

LoadGraph(IGraph, String, AsyncStorageCallback, Object)

Loads a Graph from the Store asynchronously.
Declaration
public virtual void LoadGraph(IGraph g, string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
IGraph g Graph to load into.
System.String graphUri URI of the Graph to load.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

LoadGraph(IGraph, Uri, AsyncStorageCallback, Object)

Loads a Graph from the Store asynchronously.
Declaration
public virtual void LoadGraph(IGraph g, Uri graphUri, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
IGraph g Graph to load into.
System.Uri graphUri URI of the Graph to load.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

LoadGraph(IRdfHandler, String, AsyncStorageCallback, Object)

Loads a Graph from the Store asynchronously.
Declaration
public abstract void LoadGraph(IRdfHandler handler, string graphUri, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
IRdfHandler handler Handler to load with.
System.String graphUri URI of the Graph to load.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

LoadGraph(IRdfHandler, Uri, AsyncStorageCallback, Object)

Loads a Graph from the Store asynchronously.
Declaration
public virtual void LoadGraph(IRdfHandler handler, Uri graphUri, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
IRdfHandler handler Handler to load with.
System.Uri graphUri URI of the Graph to load.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

LoadGraphAsync(HttpWebRequest, IRdfHandler, AsyncStorageCallback, Object)

Helper method for doing async load operations, callers just need to provide an appropriately prepared HTTP request.
Declaration
protected void LoadGraphAsync(HttpWebRequest request, IRdfHandler handler, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
System.Net.HttpWebRequest request HTTP Request.
IRdfHandler handler Handler to load with.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

MakeRequestSequence(IEnumerable<HttpWebRequest>, AsyncStorageCallback, Object)

Helper method for doing async operations where a sequence of HTTP requests must be run.
Declaration
protected void MakeRequestSequence(IEnumerable<HttpWebRequest> requests, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Net.HttpWebRequest> requests HTTP requests.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

SaveGraph(IGraph, AsyncStorageCallback, Object)

Saves a Graph to the Store asynchronously.
Declaration
public abstract void SaveGraph(IGraph g, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
IGraph g Graph to save.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

SaveGraphAsync(HttpWebRequest, IRdfWriter, IGraph, AsyncStorageCallback, Object)

Helper method for doing async save operations, callers just need to provide an appropriately perpared HTTP requests and a RDF writer which will be used to write the data to the request body.
Declaration
protected void SaveGraphAsync(HttpWebRequest request, IRdfWriter writer, IGraph g, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
System.Net.HttpWebRequest request HTTP request.
IRdfWriter writer RDF Writer.
IGraph g Graph to save.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object)

Updates a Graph in the Store asynchronously.
Declaration
public abstract void UpdateGraph(string graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
System.String graphUri URI of the Graph to update.
System.Collections.Generic.IEnumerable<Triple> additions Triples to be added.
System.Collections.Generic.IEnumerable<Triple> removals Triples to be removed.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object)

Updates a Graph in the Store asynchronously.
Declaration
public virtual void UpdateGraph(Uri graphUri, IEnumerable<Triple> additions, IEnumerable<Triple> removals, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
System.Uri graphUri URI of the Graph to update.
System.Collections.Generic.IEnumerable<Triple> additions Triples to be added.
System.Collections.Generic.IEnumerable<Triple> removals Triples to be removed.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.
| Improve this Doc View Source

UpdateGraphAsync(HttpWebRequest, IRdfWriter, Uri, IEnumerable<Triple>, AsyncStorageCallback, Object)

Helper method for doing async update operations, callers just need to provide an appropriately prepared HTTP request and a RDF writer which will be used to write the data to the request body.
Declaration
protected void UpdateGraphAsync(HttpWebRequest request, IRdfWriter writer, Uri graphUri, IEnumerable<Triple> ts, AsyncStorageCallback callback, object state)
Parameters
Type Name Description
System.Net.HttpWebRequest request HTTP Request.
IRdfWriter writer RDF writer.
System.Uri graphUri URI of the Graph to update.
System.Collections.Generic.IEnumerable<Triple> ts Triples.
AsyncStorageCallback callback Callback.
System.Object state State to pass to the callback.

Implements

IAsyncStorageProvider
IStorageCapabilities
System.IDisposable

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • AsyncParentServer
    • DeleteSupported
    • IOBehaviour
    • IsReadOnly
    • IsReady
    • ListGraphsSupported
    • ParentServer
    • UpdateSupported
  • Methods
    • DeleteGraph(String, AsyncStorageCallback, Object)
    • DeleteGraph(Uri, AsyncStorageCallback, Object)
    • DeleteGraphAsync(HttpWebRequest, Boolean, String, AsyncStorageCallback, Object)
    • Dispose()
    • ListGraphs(AsyncStorageCallback, Object)
    • LoadGraph(IGraph, String, AsyncStorageCallback, Object)
    • LoadGraph(IGraph, Uri, AsyncStorageCallback, Object)
    • LoadGraph(IRdfHandler, String, AsyncStorageCallback, Object)
    • LoadGraph(IRdfHandler, Uri, AsyncStorageCallback, Object)
    • LoadGraphAsync(HttpWebRequest, IRdfHandler, AsyncStorageCallback, Object)
    • MakeRequestSequence(IEnumerable<HttpWebRequest>, AsyncStorageCallback, Object)
    • SaveGraph(IGraph, AsyncStorageCallback, Object)
    • SaveGraphAsync(HttpWebRequest, IRdfWriter, IGraph, AsyncStorageCallback, Object)
    • UpdateGraph(String, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object)
    • UpdateGraph(Uri, IEnumerable<Triple>, IEnumerable<Triple>, AsyncStorageCallback, Object)
    • UpdateGraphAsync(HttpWebRequest, IRdfWriter, Uri, IEnumerable<Triple>, AsyncStorageCallback, Object)
  • Implements
  • Extension Methods
Back to top Generated by DocFX