forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSerializationContext.cs
More file actions
70 lines (56 loc) · 1.62 KB
/
SerializationContext.cs
File metadata and controls
70 lines (56 loc) · 1.62 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System;
using System.Collections.Generic;
using System.Net;
using ServiceStack.ServiceHost;
namespace ServiceStack.Common.Web
{
public class SerializationContext : IRequestContext
{
public SerializationContext(string contentType)
{
this.ResponseContentType = this.ContentType = contentType;
}
public T Get<T>() where T : class
{
return default(T);
}
public string GetHeader(string headerName)
{
return null;
}
public string IpAddress
{
get { throw new NotImplementedException(); }
}
public IDictionary<string, System.Net.Cookie> Cookies
{
get { return new Dictionary<string, System.Net.Cookie>(); }
}
public EndpointAttributes EndpointAttributes
{
get { return EndpointAttributes.None; }
}
public IRequestAttributes RequestAttributes
{
get { throw new NotImplementedException(); }
}
public string ContentType { get; set; }
public string ResponseContentType { get; set; }
public string CompressionType { get; set; }
public string AbsoluteUri
{
get { throw new NotImplementedException(); }
}
public string PathInfo
{
get { throw new NotImplementedException(); }
}
public IFile[] Files
{
get { return new IFile[0]; }
}
public void Dispose()
{
}
}
}