Share via


EventListener Class

Definition

An Implementation of the IEventListener that supports subscribing to events and dispatching them (used for manually using the lowlevel interface)

public class EventListener : System.Threading.CancellationTokenSource, Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.IEventListener, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Azure.PowerShell.Cmdlets.CostManagement.Runtime.Event>>
type EventListener = class
    inherit CancellationTokenSource
    interface seq<KeyValuePair<string, Event>>
    interface IEnumerable
    interface IEventListener
Public Class EventListener
Inherits CancellationTokenSource
Implements IEnumerable(Of KeyValuePair(Of String, Event)), IEventListener
Inheritance
EventListener
Implements

Constructors

EventListener()
EventListener(ValueTuple<String,Event>[])

Properties

Cancel

Methods

Add(String, Event)
Add(String, SynchEvent)
GetEnumerator()
Signal(String, CancellationToken, Func<EventData>)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)
Coalesce<TSource>(IEnumerable<TSource>)
ForEach<T>(IEnumerable<T>, Action<T>)
MaxOrDefault<T,TResult>(IEnumerable<T>, Func<T,TResult>, TResult)
NonNull<T>(IEnumerable<T>)

Applies to