Table of Contents

Class FlowMessageExtensions

Namespace
Crosser.EdgeNode.Flows.Models.Abstractions.Models
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

original IFlowMessage

Returns

IFlowMessage

Deserialize(string)

[Obsolete("Use FlowMessage.Deserialize(string json) instead")]
public static object? Deserialize(this string json)

Parameters

json string

Returns

object

GetPropertyLevel(IFlowMessage, string, string)

[Obsolete("Renamed to GetPropertyPath")]
public static string GetPropertyLevel(this IFlowMessage message, string property, string newProperty)

Parameters

message IFlowMessage
property string
newProperty string

Returns

string

GetPropertyPath(IFlowMessage, string, string)

public static string GetPropertyPath(this IFlowMessage message, string property, string newProperty)

Parameters

message IFlowMessage
property string
newProperty string

Returns

string

RemoveChangedProperties(IFlowMessage, IFlowMessage)

[Obsolete("Will be removed in the next major version")]
public static void RemoveChangedProperties(this IFlowMessage originalObject, IFlowMessage changedObject)

Parameters

originalObject IFlowMessage
changedObject IFlowMessage

Serialize(IFlowMessage)

[Obsolete("Use FlowMessage.ToString() instead")]
public static string Serialize(this IFlowMessage message)

Parameters

message IFlowMessage

Returns

string

Serialize(FlowMessage)

[Obsolete("Use FlowMessage.ToString() instead")]
public static string Serialize(this FlowMessage message)

Parameters

message FlowMessage

Returns

string

Serialize(object)

[Obsolete("Use Crosser.EdgeNode.Common.Utilities.Json.JsonSerializer instead")]
public static string Serialize(object message)

Parameters

message object

Returns

string

ToFlowMessage(object?)

Converts an object into a FlowMessage

public static FlowMessage ToFlowMessage(object? obj)

Parameters

obj object

the object to convert to a FlowMessage

Returns

FlowMessage

A new FlowMessage