/// <summary> /// Creates an instance of ODataMessageWriter. /// </summary> /// <param name="requestMessage">Instance of IODataRequestMessage.</param> /// <param name="requestInfo">RequestInfo containing information about the client settings.</param> /// <param name="isParameterPayload">true if the writer is intended to for a parameter payload, false otherwise.</param> /// <returns>An instance of ODataMessageWriter.</returns> internal static ODataMessageWriter CreateMessageWriter(ODataRequestMessageWrapper requestMessage, RequestInfo requestInfo, bool isParameterPayload) { var writerSettings = requestInfo.WriteHelper.CreateSettings(requestMessage.IsBatchPartRequest, requestInfo.Context.EnableWritingODataAnnotationWithoutPrefix); return(requestMessage.CreateWriter(writerSettings, isParameterPayload)); }
/// <summary> /// Creates an instance of ODataMessageWriter. /// </summary> /// <param name="requestMessage">Instance of IODataRequestMessage.</param> /// <param name="requestInfo">RequestInfo containing information about the client settings.</param> /// <param name="isParameterPayload">true if the writer is intended to for a parameter payload, false otherwise.</param> /// <returns>An instance of ODataMessageWriter.</returns> internal static ODataMessageWriter CreateMessageWriter(ODataRequestMessageWrapper requestMessage, RequestInfo requestInfo, bool isParameterPayload) { var writerSettings = requestInfo.WriteHelper.CreateSettings(requestMessage.IsBatchPartRequest, requestInfo.Context.EnableAtom, requestInfo.Context.ODataSimplified); return requestMessage.CreateWriter(writerSettings, isParameterPayload); }
/// <summary> /// Creates an instance of ODataMessageWriter. /// </summary> /// <param name="requestMessage">Instance of IODataRequestMessage.</param> /// <param name="requestInfo">RequestInfo containing information about the client settings.</param> /// <param name="isParameterPayload">true if the writer is intended to for a parameter payload, false otherwise.</param> /// <returns>An instance of ODataMessageWriter.</returns> internal static ODataMessageWriter CreateMessageWriter(ODataRequestMessageWrapper requestMessage, RequestInfo requestInfo, bool isParameterPayload) { var writerSettings = requestInfo.WriteHelper.CreateSettings(requestMessage.IsBatchPartRequest, requestInfo.Context.EnableAtom, requestInfo.Context.ODataSimplified); return(requestMessage.CreateWriter(writerSettings, isParameterPayload)); }