Class EventStoreUtilities
A collection of utility functions.
Inheritance
System.Object
EventStoreUtilities
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: Cqrs.EventStore.Bus
Assembly: Cqrs.EventStore.dll
Syntax
public static class EventStoreUtilities
Methods
ByteArrayToString(Byte[])
Converts the provided value
into a string.
Declaration
public static string ByteArrayToString(byte[] value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | value |
Returns
Type | Description |
---|---|
System.String |
FormattedStringToPosition(String)
Converts the provided formattedPosition
of a EventStore.ClientAPI.Position back into a EventStore.ClientAPI.Position.
Declaration
public static Position FormattedStringToPosition(string formattedPosition)
Parameters
Type | Name | Description |
---|---|---|
System.String | formattedPosition |
Returns
Type | Description |
---|---|
EventStore.ClientAPI.Position |
PositionToFormattedString(Position)
Converts the provide position
into a string representation of itself.
Declaration
public static string PositionToFormattedString(Position position)
Parameters
Type | Name | Description |
---|---|---|
EventStore.ClientAPI.Position | position |
Returns
Type | Description |
---|---|
System.String |
StringToByteArray(String)
Converts the provided value
into a System.Byte System.Array.
Declaration
public static byte[] StringToByteArray(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value |
Returns
Type | Description |
---|---|
System.Byte[] |