Пример #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</param>
        internal ODataJsonSerializer(ODataJsonOutputContext jsonOutputContext)
            : base(jsonOutputContext)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
        }
Пример #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</param>
        internal ODataJsonSerializer(ODataJsonOutputContext jsonOutputContext)
            : base(jsonOutputContext)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
        }
Пример #3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">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 ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener)
            : base(jsonOutputContext, expectedItemType, listener)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext        = jsonOutputContext;
            this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</param>
        /// <param name="functionImport">The function import whose parameters will be written.</param>
        internal ODataJsonParameterWriter(ODataJsonOutputContext jsonOutputContext, IEdmFunctionImport functionImport)
            : base(jsonOutputContext, functionImport)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
            this.jsonPropertyAndValueSerializer = new ODataJsonPropertyAndValueSerializer(this.jsonOutputContext);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</param>
        /// <param name="functionImport">The function import whose parameters will be written.</param>
        internal ODataJsonParameterWriter(ODataJsonOutputContext jsonOutputContext, IEdmFunctionImport functionImport)
            : base(jsonOutputContext, functionImport)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
            this.jsonPropertyAndValueSerializer = new ODataJsonPropertyAndValueSerializer(this.jsonOutputContext);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">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 ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener)
            : base(jsonOutputContext, expectedItemType, listener)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
            this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext);
        }
Пример #7
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</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 ODataJsonWriter(ODataJsonOutputContext jsonOutputContext, bool writingFeed)
            : base(jsonOutputContext, writingFeed)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext          = jsonOutputContext;
            this.jsonEntryAndFeedSerializer = new ODataJsonEntryAndFeedSerializer(this.jsonOutputContext);
        }
Пример #8
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="jsonOutputContext">The output context to write to.</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 ODataJsonWriter(ODataJsonOutputContext jsonOutputContext, bool writingFeed)
            : base(jsonOutputContext, writingFeed)
        {
            DebugUtils.CheckNoExternalCallers();
            Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null");

            this.jsonOutputContext = jsonOutputContext;
            this.jsonEntryAndFeedSerializer = new ODataJsonEntryAndFeedSerializer(this.jsonOutputContext);
        }
Пример #9
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonServiceDocumentSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
Пример #10
0
 internal ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(jsonOutputContext, expectedItemType, listener)
 {
     this.jsonOutputContext = jsonOutputContext;
     this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext);
 }
 internal ODataJsonEntryAndFeedSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
 internal ODataJsonPropertyAndValueSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonServiceDocumentSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
 internal ODataJsonPropertyAndValueSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
Пример #15
0
 internal ODataJsonWriter(ODataJsonOutputContext jsonOutputContext, bool writingFeed) : base(jsonOutputContext, writingFeed)
 {
     this.jsonOutputContext          = jsonOutputContext;
     this.jsonEntryAndFeedSerializer = new ODataJsonEntryAndFeedSerializer(this.jsonOutputContext);
 }
Пример #16
0
 internal ODataJsonWriter(ODataJsonOutputContext jsonOutputContext, bool writingFeed) : base(jsonOutputContext, writingFeed)
 {
     this.jsonOutputContext = jsonOutputContext;
     this.jsonEntryAndFeedSerializer = new ODataJsonEntryAndFeedSerializer(this.jsonOutputContext);
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonPropertyAndValueSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonEntryAndFeedSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
 internal ODataJsonEntityReferenceLinkSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
Пример #20
0
 internal ODataJsonParameterWriter(ODataJsonOutputContext jsonOutputContext, IEdmFunctionImport functionImport) : base(jsonOutputContext, functionImport)
 {
     this.jsonOutputContext = jsonOutputContext;
     this.jsonPropertyAndValueSerializer = new ODataJsonPropertyAndValueSerializer(this.jsonOutputContext);
 }
 internal ODataJsonServiceDocumentSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonEntityReferenceLinkSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
 internal ODataJsonServiceDocumentSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
Пример #24
0
 internal ODataJsonSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
     this.jsonOutputContext = jsonOutputContext;
 }
 internal ODataJsonCollectionSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
Пример #26
0
 internal ODataJsonParameterWriter(ODataJsonOutputContext jsonOutputContext, IEdmFunctionImport functionImport) : base(jsonOutputContext, functionImport)
 {
     this.jsonOutputContext = jsonOutputContext;
     this.jsonPropertyAndValueSerializer = new ODataJsonPropertyAndValueSerializer(this.jsonOutputContext);
 }
Пример #27
0
 internal ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(jsonOutputContext, expectedItemType, listener)
 {
     this.jsonOutputContext        = jsonOutputContext;
     this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext);
 }
Пример #28
0
 internal ODataJsonEntityReferenceLinkSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
Пример #29
0
 internal ODataJsonEntryAndFeedSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
 }
Пример #30
0
 internal ODataJsonSerializer(ODataJsonOutputContext jsonOutputContext) : base(jsonOutputContext)
 {
     this.jsonOutputContext = jsonOutputContext;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonPropertyAndValueSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="jsonOutputContext">The output context to write to.</param>
 internal ODataJsonEntityReferenceLinkSerializer(ODataJsonOutputContext jsonOutputContext)
     : base(jsonOutputContext)
 {
     DebugUtils.CheckNoExternalCallers();
 }