Class Utility
Contains some common methods
Inheritance
System.Object
Utility
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.WorkflowFoundation
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0Syntax
public static class Utility
Methods
CopyParameters(Dictionary<String, Object>)
Deep copy of objects through serialization/deserialization
Declaration
public static Dictionary<string, object> CopyParameters(Dictionary<string, object> dictionary)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> | dictionary | A dcitionary that should be copied |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> | A copy of parameters |
DeleteTasksForInstance(Guid)
Deletes all tasks related to an instance
Declaration
public static void DeleteTasksForInstance(Guid instanceId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | instanceId | The instance id. |
ParseFilesystemEvents(String)
Parses the passed string to an WorkflowFileSystemEvent.
Declaration
public static WorkflowFileSystemEvent ParseFilesystemEvents(string events)
Parameters
Type | Name | Description |
---|---|---|
System.String | events | The event string that should be parsed |
Returns
Type | Description |
---|---|
WorkflowFileSystemEvent | The WorkflowPageEvent that the string represented |
Remarks
strings can be "ored" using '|', i.e FileAdded | FileMoved
ParsePageEvents(String)
Parses the passed string to an WorkflowPageEvent.
Declaration
public static WorkflowPageEvent ParsePageEvents(string events)
Parameters
Type | Name | Description |
---|---|---|
System.String | events | The event string that should be parsed |
Returns
Type | Description |
---|---|
WorkflowPageEvent | The WorkflowPageEvent that the string represented |
Remarks
strings can be "ored" using '|', i.e PagePublished | PageSaved