Click or drag to resize
Akka.NETUniqueKillSwitch Class
A UniqueKillSwitch is always a result of a materialization (unlike SharedKillSwitch which is constructed before any materialization) and it always controls that graph and stage which yielded the materialized value. After calling Shutdown the running instance of the IGraphTShape of FlowShapeTIn, TOut that materialized to the UniqueKillSwitch will complete its downstream and cancel its upstream (unless if finished or failed already in which case the command is ignored). Subsequent invocations of completion commands will be ignored. After calling Abort(Exception) the running instance of the IGraphTShape of FlowShapeTIn, TOut that materialized to the UniqueKillSwitch will fail its downstream with the provided exception and cancel its upstream (unless if finished or failed already in which case the command is ignored). Subsequent invocations of completion commands will be ignored. It is also possible to individually cancel, complete or fail upstream and downstream parts by calling the corresponding methods.
Inheritance Hierarchy
SystemObject
  Akka.StreamsUniqueKillSwitch

Namespace:  Akka.Streams
Assembly:  Akka.Streams (in Akka.Streams.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public sealed class UniqueKillSwitch : IKillSwitch

The UniqueKillSwitch type exposes the following members.

Methods
  NameDescription
Public methodAbort
After calling Abort(Exception) the running instance of the IGraphTShape of FlowShapeTIn, TOut that materialized to the UniqueKillSwitch will fail its downstream with the provided exception and cancel its upstream (unless if finished or failed already in which case the command is ignored). Subsequent invocations of completion commands will be ignored.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodShutdown
Public methodToString
TBD
(Overrides ObjectToString.)
Top
Extension Methods
See Also