/// <summary> /// Constructor for creating a collection writer to use when writing parameter payloads. /// </summary> /// <param name="verboseJsonOutputContext">The output context to write to.</param> /// <param name="expectedItemType">The type reference of the expected item type or null if no expected item type exists.</param> /// <param name="listener">If not null, the writer will notify the implementer of the interface of relevant state changes in the writer.</param> internal ODataVerboseJsonCollectionWriter(ODataVerboseJsonOutputContext verboseJsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(verboseJsonOutputContext, expectedItemType, listener) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(verboseJsonOutputContext != null, "verboseJsonOutputContext != null"); this.verboseJsonOutputContext = verboseJsonOutputContext; this.verboseJsonCollectionSerializer = new ODataVerboseJsonCollectionSerializer(this.verboseJsonOutputContext); }
/// <summary> /// Constructor for creating a collection writer to use when writing operation result payloads. /// </summary> /// <param name="verboseJsonOutputContext">The output context to write to.</param> /// <param name="itemTypeReference">The item type of the collection being written or null if no metadata is available.</param> internal ODataVerboseJsonCollectionWriter(ODataVerboseJsonOutputContext verboseJsonOutputContext, IEdmTypeReference itemTypeReference) : base(verboseJsonOutputContext, itemTypeReference) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(verboseJsonOutputContext != null, "verboseJsonOutputContext != null"); this.verboseJsonOutputContext = verboseJsonOutputContext; this.verboseJsonCollectionSerializer = new ODataVerboseJsonCollectionSerializer(this.verboseJsonOutputContext); }