Click or drag to resize
Akka.NETSourceOperationsOrElseMaterializedT, TMat, TMat2, TMat3 Method
Provides a secondary source that will be consumed if this source completes without any elements passing by. As soon as the first element comes through this stream, the alternative will be cancelled. It is recommended to use the internally optimized LeftTLeft, TRight(TLeft, TRight) and RightTLeft, TRight(TLeft, TRight) combiners where appropriate instead of manually writing functions that pass through one of the values.

Namespace:  Akka.Streams.Dsl
Assembly:  Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static Source<T, TMat3> OrElseMaterialized<T, TMat, TMat2, TMat3>(
	this Source<T, TMat> flow,
	IGraph<SourceShape<T>, TMat2> secondary,
	Func<TMat, TMat2, TMat3> materializedFunction
)

Parameters

flow
Type: Akka.Streams.DslSourceT, TMat
TBD
secondary
Type: Akka.StreamsIGraphSourceShapeT, TMat2
TBD
materializedFunction
Type: SystemFuncTMat, TMat2, TMat3
TBD

Type Parameters

T
TBD
TMat
TBD
TMat2
TBD
TMat3
TBD

Return Value

Type: SourceT, TMat3
TBD

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SourceT, TMat. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also