Skip to main content

Class ACLTypeConverter

Namespace: Consul
Assembly: Consul.dll

[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
public class ACLTypeConverter : JsonConverter

Inheritance

object ← JsonConverter ← ACLTypeConverter

Inherited Members

JsonConverter.WriteJson(JsonWriter, object?, JsonSerializer), JsonConverter.ReadJson(JsonReader, Type, object?, JsonSerializer), JsonConverter.CanConvert(Type), JsonConverter.CanRead, JsonConverter.CanWrite, object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

Methods

CanConvert(Type)

Determines whether this instance can convert the specified object type.

[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
public override bool CanConvert(Type objectType)

Parameters

objectType Type

Type of the object.

Returns

bool

true if this instance can convert the specified object type; otherwise, false.

ReadJson(JsonReader, Type, object, JsonSerializer)

Reads the JSON representation of the object.

[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)

Parameters

reader JsonReader

The to read from.

objectType Type

Type of the object.

existingValue object

The existing value of object being read.

serializer JsonSerializer

The calling serializer.

Returns

object

The object value.

WriteJson(JsonWriter, object, JsonSerializer)

Writes the JSON representation of the object.

[Obsolete("The Legacy ACL system has been deprecated, please use Token, Role and Policy instead.")]
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)

Parameters

writer JsonWriter

The to write to.

value object

The value.

serializer JsonSerializer

The calling serializer.

  • Methods
    • CanConvert(Type)
    • ReadJson(JsonReader, Type, object, JsonSerializer)
    • WriteJson(JsonWriter, object, JsonSerializer)