Skip to main content

Interface ISnapshotEndpoint

Namespace: Consul
Assembly: Consul.dll

The interface for the Snapshot API Endpoints

public interface ISnapshotEndpoint

Methods

Restore(Stream, CancellationToken)

Task<WriteResult> Restore(Stream s, CancellationToken ct = default)

Parameters

s Stream

ct CancellationToken

Returns

Task <WriteResult >

Restore(Stream, WriteOptions, CancellationToken)

Task<WriteResult> Restore(Stream s, WriteOptions q, CancellationToken ct = default)

Parameters

s Stream

q WriteOptions

ct CancellationToken

Returns

Task <WriteResult >

Save(CancellationToken)

Task<QueryResult<Stream>> Save(CancellationToken ct = default)

Parameters

ct CancellationToken

Returns

Task <QueryResult <Stream >>

Save(QueryOptions, CancellationToken)

Task<QueryResult<Stream>> Save(QueryOptions q, CancellationToken ct = default)

Parameters

q QueryOptions

ct CancellationToken

Returns

Task <QueryResult <Stream >>

  • Methods
    • Restore(Stream, CancellationToken)
    • Restore(Stream, WriteOptions, CancellationToken)
    • Save(CancellationToken)
    • Save(QueryOptions, CancellationToken)