/// <summary> /// Constructor creating an OData writer using the ATOM format. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> /// <param name="navigationSource">The navigation source we are going to write entities for.</param> /// <param name="entityType">The entity type for the entries in the feed to be written (or null if the entity set base type should be used).</param> /// <param name="writingFeed">True if the writer is created for writing a feed; false when it is created for writing an entry.</param> internal ODataAtomWriter( ODataAtomOutputContext atomOutputContext, IEdmNavigationSource navigationSource, IEdmEntityType entityType, bool writingFeed) : base(atomOutputContext, navigationSource, entityType, writingFeed) { Debug.Assert(atomOutputContext != null, "atomOutputContext != null"); this.atomOutputContext = atomOutputContext; this.atomEntryAndFeedSerializer = new ODataAtomEntryAndFeedSerializer(this.atomOutputContext); }