This repository has been archived by the owner on Apr 27, 2019. It is now read-only.
Releases: PlayFab/consuldotnet
Releases · PlayFab/consuldotnet
0.7.2.6
0.7.2.5
Add ServiceMeta
0.7.2.4
- Fix a few lock related bugs.
0.7.2.0
- New APIs ported:
- Snapshot API. Requires >= Consul 0.7.1 to use.
- Keyring API. Requires >= Consul 0.7.2 to use.
- Agent Leave/Reload APIs. Requires >= Consul 0.7.2 to use.
- Added
TLSSkipVerify
andDeregisterCriticalServiceAfter
to the
AgentServiceCheck class. Requires >= Consul 0.7.0 to use. - Added
Health.AggregatedStatus()
extension method to any
IEnumerable<HealthCheck>
to roll up a set of checks. Can be used
with any version of Consul. - Renamed
CheckStatus
toHealthStatus
. This affects the
AgentServiceCheck
andAgentCheck
classes. - Changed the
Health.HealthCheck
Status
field to be of type
HealthStatus
instead ofstring
.
0.7.0.4
Added a couple missing interfaces to IConsulClient. Thanks @chrishoffman!
0.7.0.3
Cleaned up a few minor logic errors and made disposal of internally-used CancellationTokenSources a lot more explicit instead of leaking them.
0.7.0.2
Fix unexpected upgrade to .NET 4.5.1.
0.7.0.1
Fixed a variety of bugs that could cause sessions to be destroyed if provided to a Lock or Semaphore via a LockOptions
or SemaphoreOptions
object.
0.7.0
- The method of configuring the ConsulClient has been reworked. It now
usesAction
s to configure the options inside itself - e.g.
var client = new ConsulClient((cfg) => { cfg.Datacenter = "us-west-2"; }
See the fileConsul.Test/ClientTest.cs
and the test method
Client_Constructors()
for more examples. The old method will work
but has been made Obsolete. - The
ExecuteAbortableLocked
method has been removed. - Requests to use the
X-Consul-Token
header instead of the?token=
query parameter. This may break use of ACLs with very old Consuls (<
0.6.0). Please file an issue if this breaks for you. - Ported in changes from the Consul Go API for 0.7.0. Most of these
require 0.7.0 servers/agents. The changes are:- Atomic transactions for the KV store
- Only retry locks/semaphores on Consul errors, not on all errors
- Add the
Near
property to Prepared Queries - Add Query Templates to Prepared Queries, with regex filtering
- Change all requests to use the
X-Consul-Token
header instead of
the?token=
query parameter. - Add the ability to deregister a service that has been critical for
an arbitrary period of time. - Signal WAN address translation and add the ability to look up
the WAN and LAN addresses if address translation is being used. - Added Operator API to allow Raft editing.
- Added the ability to set
LockOpts.LockRetryTime
. Thanks @pfrejlich! - Add an optional CancellationToken parameter to every method that ends up
doing an HTTP request. Some of these can create an unstable Consul state
(e.g. allowing the release of a distribted Semaphore to be canceled) but in
many cases they should only be used if the call can possibly fail and a
secondary timeout is needed. - Add .NET Core port and build process thanks to work by @akatz0813.
- Converted all Locks and Semaphores to be totally
async
thanks to
work by @mjgoethe. - Entirely removed the method
ExecuteAbortableLocked
and all
functionality around aborting a thread based on a Consul lock. - Reworked configuration of the
ConsulClient
to useAction<T>
to
configure options.
0.6.4.6
Reverse runtime check for mono to actually disable client certs under that
platform.