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.ServiceLinker.Runtime.IEventListener, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Azure.PowerShell.Cmdlets.ServiceLinker.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>)
Batch<TSource>(IEnumerable<TSource>, Int32)

Batches an enumerable into batches of the specified size.

CoalesceEnumerable<TSource>(IEnumerable<TSource>)

Coalesces the enumerable.

Distinct<TSource,TKeyType>(IEnumerable<TSource>, Func<TSource,TKeyType>, IEqualityComparer<TKeyType>)

Returns a distinct collection based on a key.

DistinctArray<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

Returns a distinct array.

SelectArray<TSource,TResult>(IEnumerable<TSource>, Func<TSource,TResult>)

Selects a collection and returns an array.

SelectManyArray<TSource,TResult>(IEnumerable<TSource>, Func<TSource,IEnumerable<TResult>>)

Selects a collection and returns an array.

ToInsensitiveDictionary<TValue>(IEnumerable<TValue>, Func<TValue,String>)

Creates an insensitive dictionary from an enumerable.

ToInsensitiveDictionary<TSource,TValue>(IEnumerable<TSource>, Func<TSource,String>, Func<TSource,TValue>)

Creates an insensitive dictionary from an enumerable.

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