Class DispatcherExtension
IDispatcher extension methods provider
Inheritance
System.Object
DispatcherExtension
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ComposableAsync
Assembly: ComposableAsync.Core.dll
Syntax
public static class DispatcherExtension
Methods
| Improve this Doc View SourceAsDelegatingHandler(IDispatcher)
Create a System.Net.Http.DelegatingHandler from an IDispatcher
Declaration
public static DelegatingHandler AsDelegatingHandler(this IDispatcher dispatcher)
Parameters
Type | Name | Description |
---|---|---|
IDispatcher | dispatcher |
Returns
Type | Description |
---|---|
System.Net.Http.DelegatingHandler |
GetAwaiter(IDispatcher)
Returns awaitable to enter in the dispatcher context
This extension method make a dispatcher awaitable
Declaration
public static DispatcherAwaiter GetAwaiter(this IDispatcher dispatcher)
Parameters
Type | Name | Description |
---|---|---|
IDispatcher | dispatcher |
Returns
Type | Description |
---|---|
DispatcherAwaiter |
Then(IDispatcher, IDispatcher)
Returns a composed dispatcher applying the given dispatcher
after the first one
Declaration
public static IDispatcher Then(this IDispatcher dispatcher, IDispatcher other)
Parameters
Type | Name | Description |
---|---|---|
IDispatcher | dispatcher | |
IDispatcher | other |
Returns
Type | Description |
---|---|
IDispatcher |
Then(IDispatcher, IDispatcher[])
Returns a composed dispatcher applying the given dispatchers sequentially
Declaration
public static IDispatcher Then(this IDispatcher dispatcher, params IDispatcher[] others)
Parameters
Type | Name | Description |
---|---|---|
IDispatcher | dispatcher | |
IDispatcher[] | others |
Returns
Type | Description |
---|---|
IDispatcher |
Then(IDispatcher, IEnumerable<IDispatcher>)
Returns a composed dispatcher applying the given dispatchers sequentially
Declaration
public static IDispatcher Then(this IDispatcher dispatcher, IEnumerable<IDispatcher> others)
Parameters
Type | Name | Description |
---|---|---|
IDispatcher | dispatcher | |
System.Collections.Generic.IEnumerable<IDispatcher> | others |
Returns
Type | Description |
---|---|
IDispatcher |
ToFullDispatcher(IBasicDispatcher)
Create a IDispatcher from an IBasicDispatcher
Declaration
public static IDispatcher ToFullDispatcher(this IBasicDispatcher basicDispatcher)
Parameters
Type | Name | Description |
---|---|---|
IBasicDispatcher | basicDispatcher |
Returns
Type | Description |
---|---|
IDispatcher |