Click or drag to resize
Akka.NETORDictionaryTKey, TValueAddOrUpdate Method (Cluster, TKey, TValue, FuncTValue, TValue)
Replace a value by applying the modify function on the existing value. If there is no current value for the key the initial value will be passed to the modify function.

Namespace:  Akka.DistributedData
Assembly:  Akka.DistributedData (in Akka.DistributedData.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public ORDictionary<TKey, TValue> AddOrUpdate(
	Cluster node,
	TKey key,
	TValue initial,
	Func<TValue, TValue> modify
)

Parameters

node
Type: Akka.ClusterCluster

[Missing <param name="node"/> documentation for "M:Akka.DistributedData.ORDictionary`2.AddOrUpdate(Akka.Cluster.Cluster,`0,`1,System.Func{`1,`1})"]

key
Type: TKey

[Missing <param name="key"/> documentation for "M:Akka.DistributedData.ORDictionary`2.AddOrUpdate(Akka.Cluster.Cluster,`0,`1,System.Func{`1,`1})"]

initial
Type: TValue

[Missing <param name="initial"/> documentation for "M:Akka.DistributedData.ORDictionary`2.AddOrUpdate(Akka.Cluster.Cluster,`0,`1,System.Func{`1,`1})"]

modify
Type: SystemFuncTValue, TValue

[Missing <param name="modify"/> documentation for "M:Akka.DistributedData.ORDictionary`2.AddOrUpdate(Akka.Cluster.Cluster,`0,`1,System.Func{`1,`1})"]

Return Value

Type: ORDictionaryTKey, TValue

[Missing <returns> documentation for "M:Akka.DistributedData.ORDictionary`2.AddOrUpdate(Akka.Cluster.Cluster,`0,`1,System.Func{`1,`1})"]

See Also