blob: 5323c23fdbed54f47b6bf6d6d057738da95d03b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Net.Http;
using System.Web.Http.Routing;
using Microsoft.Data.Edm;
namespace System.Web.Http.OData.Formatter.Serialization
{
/// <summary>
/// Context information used by the <see cref="ODataSerializer"/> when serializing objects in OData message format.
/// </summary>
public class ODataSerializerContext
{
/// <summary>
/// Gets or sets the URL helper.
/// </summary>
public UrlHelper UrlHelper { get; set; }
/// <summary>
/// Gets or sets the root projection node.
/// </summary>
public ODataQueryProjectionNode RootProjectionNode { get; set; }
/// <summary>
/// Gets or sets the current projection node.
/// </summary>
public ODataQueryProjectionNode CurrentProjectionNode { get; set; }
/// <summary>
/// Gets or sets the entity set.
/// </summary>
public IEdmEntitySet EntitySet { get; set; }
/// <summary>
/// Gets or sets the ServiceOperationName which is used when writing primitive types
/// and complex types.
/// </summary>
public string ServiceOperationName { get; set; }
/// <summary>
/// Gets or sets the HttpRequestMessage.
/// The HttpRequestMessage can then be used by ODataSerializers to learn more about the Request that triggered the serialization
/// </summary>
public HttpRequestMessage Request { get; set; }
}
}
|