Class FlowMessageExtensions
- Assembly
- Crosser.EdgeNode.Flows.Abstractions.dll
Helpers for FlowMessage
public static class FlowMessageExtensions
- Inheritance
-
FlowMessageExtensions
- Inherited Members
Methods
DeepCopy(IFlowMessage)
[Obsolete("Use Clone instead")]
public static IFlowMessage DeepCopy(this IFlowMessage original)
Parameters
originalIFlowMessage
Returns
- IFlowMessage
Deserialize(string)
[Obsolete("Use FlowMessage.Deserialize(string json) instead")]
public static object? Deserialize(this string json)
Parameters
jsonstring
Returns
GetPropertyLevel(IFlowMessage, string, string)
[Obsolete("Renamed to GetPropertyPath")]
public static string GetPropertyLevel(this IFlowMessage message, string property, string newProperty)
Parameters
Returns
GetPropertyPath(IFlowMessage, string, string)
public static string GetPropertyPath(this IFlowMessage message, string property, string newProperty)
Parameters
Returns
RemoveChangedProperties(IFlowMessage, IFlowMessage)
[Obsolete("Will be removed in the next major version")]
public static void RemoveChangedProperties(this IFlowMessage originalObject, IFlowMessage changedObject)
Parameters
originalObjectIFlowMessagechangedObjectIFlowMessage
Serialize(IFlowMessage)
[Obsolete("Use FlowMessage.ToString() instead")]
public static string Serialize(this IFlowMessage message)
Parameters
messageIFlowMessage
Returns
Serialize(FlowMessage)
[Obsolete("Use FlowMessage.ToString() instead")]
public static string Serialize(this FlowMessage message)
Parameters
messageFlowMessage
Returns
Serialize(object)
[Obsolete("Use Crosser.EdgeNode.Common.Utilities.Json.JsonSerializer instead")]
public static string Serialize(object message)
Parameters
messageobject
Returns
ToFlowMessage(object?)
Converts an object into a FlowMessage
public static FlowMessage ToFlowMessage(object? obj)
Parameters
objobjectthe object to convert to a FlowMessage
Returns
- FlowMessage
A new FlowMessage