Table of Contents

Class EventStreamDestinationPatch

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(EventStreamDestinationPatch.JsonConverter))]
[Serializable]
public class EventStreamDestinationPatch
Inheritance
EventStreamDestinationPatch
Inherited Members
Extension Methods

Properties

Type

Type discriminator

[JsonIgnore]
public string Type { get; }

Property Value

string

Value

Union value

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

AsEventStreamActionDestination()

Returns the value as a EventStreamActionDestination if Type is 'eventStreamActionDestination', otherwise throws an exception.

public EventStreamActionDestination AsEventStreamActionDestination()

Returns

EventStreamActionDestination

Exceptions

ManagementException

Thrown when Type is not 'eventStreamActionDestination'.

AsEventStreamWebhookDestination()

Returns the value as a EventStreamWebhookDestination if Type is 'eventStreamWebhookDestination', otherwise throws an exception.

public EventStreamWebhookDestination AsEventStreamWebhookDestination()

Returns

EventStreamWebhookDestination

Exceptions

ManagementException

Thrown when Type is not 'eventStreamWebhookDestination'.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FromEventStreamActionDestination(EventStreamActionDestination)

Factory method to create a union from a Auth0.ManagementApi.EventStreamActionDestination value.

public static EventStreamDestinationPatch FromEventStreamActionDestination(EventStreamActionDestination value)

Parameters

value EventStreamActionDestination

Returns

EventStreamDestinationPatch

FromEventStreamWebhookDestination(EventStreamWebhookDestination)

Factory method to create a union from a Auth0.ManagementApi.EventStreamWebhookDestination value.

public static EventStreamDestinationPatch FromEventStreamWebhookDestination(EventStreamWebhookDestination value)

Parameters

value EventStreamWebhookDestination

Returns

EventStreamDestinationPatch

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsEventStreamActionDestination()

Returns true if Type is "eventStreamActionDestination"

public bool IsEventStreamActionDestination()

Returns

bool

IsEventStreamWebhookDestination()

Returns true if Type is "eventStreamWebhookDestination"

public bool IsEventStreamWebhookDestination()

Returns

bool

Match<T>(Func<EventStreamWebhookDestination, T>, Func<EventStreamActionDestination, T>)

public T Match<T>(Func<EventStreamWebhookDestination, T> onEventStreamWebhookDestination, Func<EventStreamActionDestination, T> onEventStreamActionDestination)

Parameters

onEventStreamWebhookDestination Func<EventStreamWebhookDestination, T>
onEventStreamActionDestination Func<EventStreamActionDestination, T>

Returns

T

Type Parameters

T

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryGetEventStreamActionDestination(out EventStreamActionDestination?)

Attempts to cast the value to a EventStreamActionDestination and returns true if successful.

public bool TryGetEventStreamActionDestination(out EventStreamActionDestination? value)

Parameters

value EventStreamActionDestination

Returns

bool

TryGetEventStreamWebhookDestination(out EventStreamWebhookDestination?)

Attempts to cast the value to a EventStreamWebhookDestination and returns true if successful.

public bool TryGetEventStreamWebhookDestination(out EventStreamWebhookDestination? value)

Parameters

value EventStreamWebhookDestination

Returns

bool

Visit(Action<EventStreamWebhookDestination>, Action<EventStreamActionDestination>)

public void Visit(Action<EventStreamWebhookDestination> onEventStreamWebhookDestination, Action<EventStreamActionDestination> onEventStreamActionDestination)

Parameters

onEventStreamWebhookDestination Action<EventStreamWebhookDestination>
onEventStreamActionDestination Action<EventStreamActionDestination>

Operators

implicit operator EventStreamDestinationPatch(EventStreamActionDestination)

public static implicit operator EventStreamDestinationPatch(EventStreamActionDestination value)

Parameters

value EventStreamActionDestination

Returns

EventStreamDestinationPatch

implicit operator EventStreamDestinationPatch(EventStreamWebhookDestination)

public static implicit operator EventStreamDestinationPatch(EventStreamWebhookDestination value)

Parameters

value EventStreamWebhookDestination

Returns

EventStreamDestinationPatch