/// <summary> /// serializes the event data to a stream. /// </summary> /// <param name="stream">The stream.</param> /// <param name="eventData"> The event data.</param> private static void SerializeEventData(Stream stream, IEventData eventData) { GpBinaryByteWriterV17.WriteEventData(stream, eventData); }
/// <summary> /// Serializes an operation response. /// </summary> /// <param name="stream"> The stream.</param> /// <param name="operationResponse">The operation response.</param> /// <exception cref="T:System.IO.InvalidDataException"> /// A value can not be serialized. ///</exception> ///<exception cref="T:System.ArrayTypeMismatchException"> /// A collection with different types can not be serialized. ///</exception> private static void SerializeOperationResponse(Stream stream, OperationResponse operationResponse) { GpBinaryByteWriterV17.WriteOperationResponse(stream, operationResponse); }
/// <summary> /// Serialze an object to a stream /// </summary> /// <param name="stream">The stream.</param> /// <param name="obj"> The object to serialize.</param> public void Serialize(Stream stream, object obj) { GpBinaryByteWriterV17.Write(stream, obj); }
/// <summary> /// Serializes an operation request. /// </summary> /// <param name="stream"> The stream.</param> /// <param name="operationRequest">The operation request.</param> /// <exception cref="T:System.IO.InvalidDataException"> ///A value can not be serialized. ///</exception> ///<exception cref="T:System.ArrayTypeMismatchException"> /// A collection with different types can not be serialized. ///</exception> private static void SerializeOperationRequest(Stream stream, OperationRequest operationRequest) { GpBinaryByteWriterV17.WriteOperationRequest(stream, operationRequest); }