Share via


OperationData Class

Definition

An OperationData is used to transfer copy state changes and copy context between replicas.

If AsMemoryManagedOperationData() returns a non-null value, this value must be interacted with instead of the OperationData object. Exposed this way to avoid disturbing the API surface.

public class OperationData : System.Collections.ObjectModel.Collection<ArraySegment<byte>>, System.Collections.Generic.IEnumerable<ArraySegment<byte>>, System.Fabric.IOperationData
type OperationData = class
    inherit Collection<ArraySegment<byte>>
    interface IOperationData
    interface seq<ArraySegment<byte>>
    interface IEnumerable
Public Class OperationData
Inherits Collection(Of ArraySegment(Of Byte))
Implements IEnumerable(Of ArraySegment(Of Byte)), IOperationData
Inheritance
OperationData
Implements

Constructors

OperationData()

Initializes a new instance of the OperationData class.

OperationData(ArraySegment<Byte>)

Initializes a new instance of the OperationData class from the specified ArraySegment<T> of bytes.

OperationData(Byte[])

Initializes a new instance of the OperationData class from the specified byte array.

OperationData(IEnumerable<ArraySegment<Byte>>)

Initializes a new instance of the OperationData class from the specified collection of ArraySegment<T> of bytes.

OperationData(IEnumerable<Byte[]>)

Initializes a new instance of the OperationData class from the specified collection of byte arrays.

Methods

AsMemoryManagedOperationData()

Interpret this instance as System.Fabric.MemoryManagedOperationData.

CreateMemoryManagedOperationData(IEnumerable<MemoryOwner>)

Creates MemoryManagedOperationData wrapped in a OperationData

CreateMemoryManagedOperationData(MemoryOwner)

Creates MemoryManagedOperationData wrapped in a OperationData

Extension Methods

ToCommaSeparatedString<T>(IEnumerable<T>)

Converts the elements of a collection to strings and concatenates them into a comma-separated list, or returns null for null or empty collections.

Applies to