Class SerializationContext
Provides storage for payload when serializing a message.
Inheritance
System.Object
    SerializationContext
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Grpc.Core
Assembly: Grpc.Core.Api.dll
Syntax
public abstract class SerializationContext
  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  |