2.2.5.3.3 Lifetime of a Serializer/Deserializer Pair

The serialization used in the PowerShell Remoting Protocol makes certain assumptions about lifetime of a serializer/deserializer pair. These assumptions are used in managing uniqueness of object identifiers (section 2.2.5.2.1) and type identifiers (section 2.2.5.2.3) used by the serializer.

A new serializer/deserializer pair MUST be created and reused for each type of message data that is specified in section 2.2.2 and sent across the network.