Show / Hide Table of Contents

    Class SerializationContext

    Provides storage for payload when serializing a message.

    Inheritance
    System.Object
    SerializationContext
    Namespace: Grpc.Core
    Assembly: Grpc.Core.Api.dll
    Syntax
    public abstract class SerializationContext : object

    Methods

    Complete(Byte[])

    Use the byte array as serialized form of current message and mark serialization process as complete. Complete() can only be called once. By calling this method the caller gives up the ownership of the payload which must not be accessed afterwards.

    Declaration
    public virtual void Complete(byte[] payload)
    Parameters
    Type Name Description
    System.Byte[] payload

    the serialized form of current message

    Back to top Generated by DocFX