Click or drag to resize
SucceededStateSerializeData Method
Gets a serialized representation of the current state.

Namespace: Hangfire.States
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public Dictionary<string, string> SerializeData()

Return Value

Type: DictionaryString, String
A dictionary with serialized properties of the current state.

Implements

IStateSerializeData
Remarks

Returning dictionary contains the following keys. You can obtain the state data by using the GetStateData(String) method.

KeyTypeDeserialize MethodNotes
SucceededAtDateTimeDeserializeDateTime(String)Please see the SucceededAt property.
PerformanceDurationInt64Parse(String, IFormatProvider) with InvariantCulturePlease see the PerformanceDuration property.
LatencyInt64Parse(String, IFormatProvider) with InvariantCulturePlease see the Latency property.
ResultObjectFromJson(String, Type)

Please see the Result property.

This key may be missing from the dictionary, when the return value was . Always check for its existence before using it.

See Also