Redigera

Dela via


ConcurrentQueueCodec<T> Class

Definition

Serializer for ConcurrentQueue<T>.

[Orleans.RegisterSerializer]
public sealed class ConcurrentQueueCodec<T> : Orleans.Serialization.Codecs.GeneralizedReferenceTypeSurrogateCodec<System.Collections.Concurrent.ConcurrentQueue<T>,Orleans.Serialization.Codecs.ConcurrentQueueSurrogate<T>>
[<Orleans.RegisterSerializer>]
type ConcurrentQueueCodec<'T> = class
    inherit GeneralizedReferenceTypeSurrogateCodec<ConcurrentQueue<'T>, ConcurrentQueueSurrogate<'T>>
Public NotInheritable Class ConcurrentQueueCodec(Of T)
Inherits GeneralizedReferenceTypeSurrogateCodec(Of ConcurrentQueue(Of T), ConcurrentQueueSurrogate(Of T))

Type Parameters

T

The element type.

Inheritance
Attributes

Constructors

ConcurrentQueueCodec<T>(IValueSerializer<ConcurrentQueueSurrogate<T>>)

Initializes a new instance of the ConcurrentQueueCodec<T> class.

Methods

ConvertFromSurrogate(ConcurrentQueueSurrogate<T>) System.Object.ConvertFromSurrogate(Orleans.Serialization.Codecs.ConcurrentQueueSurrogate{`0}@)
ConvertFromSurrogate(TSurrogate)

Converts a value from the surrogate type to the field type.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ConcurrentQueue<T>, ConcurrentQueueSurrogate<T>) System.Object.ConvertToSurrogate(System.Collections.Concurrent.ConcurrentQueue{`0},Orleans.Serialization.Codecs.ConcurrentQueueSurrogate{`0}@)
ConvertToSurrogate(TField, TSurrogate)

Converts a value to the surrogate type.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ReadValue<TInput>(Reader<TInput>, Field)

Reads a value.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

Writes a field.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)

Applies to