Class AccumulateWhileUnchanged<TElement, TProperty>
Accumulates elements of type TElement
while extracted property of type TProperty
remains unchanged,
emits an accumulated sequence when the property changes
Inheritance
AccumulateWhileUnchanged<TElement, TProperty>
Implements
Inherited Members
Namespace: Akka.Streams.Dsl
Assembly: Akka.Streams.dll
Syntax
public class AccumulateWhileUnchanged<TElement, TProperty> : GraphStage<FlowShape<TElement, IEnumerable<TElement>>>, IGraphStageWithMaterializedValue<FlowShape<TElement, IEnumerable<TElement>>, NotUsed>, IGraph<FlowShape<TElement, IEnumerable<TElement>>, NotUsed>, IGraph<FlowShape<TElement, IEnumerable<TElement>>>
Type Parameters
Name | Description |
---|---|
TElement | type of accumulated elements |
TProperty | type of the observed property |
Constructors
| Improve this Doc View SourceAccumulateWhileUnchanged(Func<TElement, TProperty>)
Declaration
public AccumulateWhileUnchanged(Func<TElement, TProperty> propertyExtractor)
Parameters
Type | Name | Description |
---|---|---|
Func<TElement, TProperty> | propertyExtractor | a function to extract the observed element property |
Properties
| Improve this Doc View SourceIn
Declaration
public Inlet<TElement> In { get; }
Property Value
Type | Description |
---|---|
Inlet<TElement> |
Out
Declaration
public Outlet<IEnumerable<TElement>> Out { get; }
Property Value
Type | Description |
---|---|
Outlet<IEnumerable<TElement>> |
Shape
Declaration
public override FlowShape<TElement, IEnumerable<TElement>> Shape { get; }
Property Value
Type | Description |
---|---|
FlowShape<TElement, IEnumerable<TElement>> |
Overrides
Akka.Streams.Stage.GraphStageWithMaterializedValue<Akka.Streams.FlowShape<TElement, System.Collections.Generic.IEnumerable<TElement>>, Akka.NotUsed>.Shape
Methods
| Improve this Doc View SourceCreateLogic(Attributes)
Declaration
protected override GraphStageLogic CreateLogic(Attributes inheritedAttributes)
Parameters
Type | Name | Description |
---|---|---|
Attributes | inheritedAttributes |
Returns
Type | Description |
---|---|
GraphStageLogic |
Overrides
Akka.Streams.Stage.GraphStage<Akka.Streams.FlowShape<TElement, System.Collections.Generic.IEnumerable<TElement>>>.CreateLogic(Akka.Streams.Attributes)