Class SourceWithContextOperations
Inheritance
SourceWithContextOperations
Assembly: Akka.Streams.dll
Syntax
public static class SourceWithContextOperations
Methods
|
Edit this page
View Source
Collect<TOut, TCtx, TOut2, TMat>(SourceWithContext<TOut, TCtx, TMat>, Func<TOut, TOut2>)
Context-preserving variant of Akka.Streams.Implementation.Fusing.Collect<TIn, TOut>
Declaration
public static SourceWithContext<TOut2, TCtx, TMat> Collect<TOut, TCtx, TOut2, TMat>(this SourceWithContext<TOut, TCtx, TMat> flow, Func<TOut, TOut2> fn) where TOut2 : class
Parameters
Returns
Type Parameters
Name |
Description |
TOut |
|
TCtx |
|
TOut2 |
|
TMat |
|
|
Edit this page
View Source
Grouped<TOut, TCtx, TMat>(SourceWithContext<TOut, TCtx, TMat>, int)
Declaration
public static SourceWithContext<IReadOnlyList<TOut>, IReadOnlyList<TCtx>, TMat> Grouped<TOut, TCtx, TMat>(this SourceWithContext<TOut, TCtx, TMat> flow, int n)
Parameters
Returns
Type Parameters
Name |
Description |
TOut |
|
TCtx |
|
TMat |
|
|
Edit this page
View Source
SelectAsync<TOut, TCtx, TOut2, TMat>(SourceWithContext<TOut, TCtx, TMat>, int, Func<TOut, Task<TOut2>>)
Declaration
public static SourceWithContext<TOut2, TCtx, TMat> SelectAsync<TOut, TCtx, TOut2, TMat>(this SourceWithContext<TOut, TCtx, TMat> flow, int parallelism, Func<TOut, Task<TOut2>> fn)
Parameters
Returns
Type Parameters
Name |
Description |
TOut |
|
TCtx |
|
TOut2 |
|
TMat |
|
|
Edit this page
View Source
SelectConcat<TOut, TCtx, TOut2, TMat>(SourceWithContext<TOut, TCtx, TMat>, Func<TOut, IEnumerable<TOut2>>)
Declaration
public static SourceWithContext<TOut2, TCtx, TMat> SelectConcat<TOut, TCtx, TOut2, TMat>(this SourceWithContext<TOut, TCtx, TMat> flow, Func<TOut, IEnumerable<TOut2>> fn)
Parameters
Returns
Type Parameters
Name |
Description |
TOut |
|
TCtx |
|
TOut2 |
|
TMat |
|
|
Edit this page
View Source
SelectContext<TOut, TCtx, TCtx2, TMat>(SourceWithContext<TOut, TCtx, TMat>, Func<TCtx, TCtx2>)
Apply the given function to each context element (leaving the data elements unchanged).
Declaration
public static SourceWithContext<TOut, TCtx2, TMat> SelectContext<TOut, TCtx, TCtx2, TMat>(this SourceWithContext<TOut, TCtx, TMat> flow, Func<TCtx, TCtx2> mapContext)
Parameters
Returns
Type Parameters
Name |
Description |
TOut |
|
TCtx |
|
TCtx2 |
|
TMat |
|
|
Edit this page
View Source
Select<TOut, TCtx, TOut2, TMat>(SourceWithContext<TOut, TCtx, TMat>, Func<TOut, TOut2>)
Declaration
public static SourceWithContext<TOut2, TCtx, TMat> Select<TOut, TCtx, TOut2, TMat>(this SourceWithContext<TOut, TCtx, TMat> flow, Func<TOut, TOut2> fn)
Parameters
Returns
Type Parameters
Name |
Description |
TOut |
|
TCtx |
|
TOut2 |
|
TMat |
|
|
Edit this page
View Source
Sliding<TOut, TCtx, TMat>(SourceWithContext<TOut, TCtx, TMat>, int, int)
Declaration
public static SourceWithContext<IReadOnlyList<TOut>, IReadOnlyList<TCtx>, TMat> Sliding<TOut, TCtx, TMat>(this SourceWithContext<TOut, TCtx, TMat> flow, int n, int step = 1)
Parameters
Returns
Type Parameters
Name |
Description |
TOut |
|
TCtx |
|
TMat |
|
|
Edit this page
View Source
StatefulSelectConcat<TOut, TCtx, TOut2, TMat>(SourceWithContext<TOut, TCtx, TMat>, Func<Func<TOut, IEnumerable<TOut2>>>)
Declaration
public static SourceWithContext<TOut2, TCtx, TMat> StatefulSelectConcat<TOut, TCtx, TOut2, TMat>(this SourceWithContext<TOut, TCtx, TMat> flow, Func<Func<TOut, IEnumerable<TOut2>>> fn)
Parameters
Returns
Type Parameters
Name |
Description |
TOut |
|
TCtx |
|
TOut2 |
|
TMat |
|
|
Edit this page
View Source
WhereNot<TOut, TCtx, TMat>(SourceWithContext<TOut, TCtx, TMat>, Func<TOut, bool>)
Declaration
public static SourceWithContext<TOut, TCtx, TMat> WhereNot<TOut, TCtx, TMat>(this SourceWithContext<TOut, TCtx, TMat> flow, Func<TOut, bool> predicate)
Parameters
Returns
Type Parameters
Name |
Description |
TOut |
|
TCtx |
|
TMat |
|
|
Edit this page
View Source
Where<TOut, TCtx, TMat>(SourceWithContext<TOut, TCtx, TMat>, Func<TOut, bool>)
Declaration
public static SourceWithContext<TOut, TCtx, TMat> Where<TOut, TCtx, TMat>(this SourceWithContext<TOut, TCtx, TMat> flow, Func<TOut, bool> predicate)
Parameters
Returns
Type Parameters
Name |
Description |
TOut |
|
TCtx |
|
TMat |
|