コード例 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="atomOutputContext">The output context to write to.</param>
        internal ODataAtomServiceDocumentSerializer(ODataAtomOutputContext atomOutputContext)
            : base(atomOutputContext)
        {
            this.atomServiceDocumentMetadataSerializer = new ODataAtomServiceDocumentMetadataSerializer(atomOutputContext);

            // DEVNOTE: grab this early so that any validation errors are thrown at creation time rather than when Write___ is called.
            this.contextUriBuilder = atomOutputContext.CreateContextUriBuilder();
        }
コード例 #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="atomOutputContext">The output context to write to.</param>
        internal ODataAtomServiceDocumentSerializer(ODataAtomOutputContext atomOutputContext)
            : base(atomOutputContext)
        {
            this.atomServiceDocumentMetadataSerializer = new ODataAtomServiceDocumentMetadataSerializer(atomOutputContext);

            // DEVNOTE: grab this early so that any validation errors are thrown at creation time rather than when Write___ is called.
            this.contextUriBuilder = atomOutputContext.CreateContextUriBuilder();
        }
コード例 #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="atomOutputContext">The output context to write to.</param>
 internal ODataAtomEntityReferenceLinkSerializer(ODataAtomOutputContext atomOutputContext)
     : base(atomOutputContext)
 {
     // DEVNOTE: grab this early so that any validation errors are thrown at creation time rather than when Write___ is called.
     this.contextUriBuilder = atomOutputContext.CreateContextUriBuilder();
 }
コード例 #4
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="atomOutputContext">The output context to write to.</param>
 internal ODataAtomEntityReferenceLinkSerializer(ODataAtomOutputContext atomOutputContext)
     : base(atomOutputContext)
 {
     // DEVNOTE: grab this early so that any validation errors are thrown at creation time rather than when Write___ is called.
     this.contextUriBuilder = atomOutputContext.CreateContextUriBuilder();
 }