forked from KLab/protobuf-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RpcTest.cs
108 lines (73 loc) · 2.78 KB
/
RpcTest.cs
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
//#if DEBUG
// // Generated from rpc.proto
// // Option: xml serialization enabled
// // Option: proto-rpc enabled
// namespace rpc.proto
// {
// [System.Serializable, ProtoBuf.ProtoContract(Name=@"SearchRequest")]
// [System.Xml.Serialization.XmlType(TypeName=@"SearchRequest")]
// public partial class SearchRequest
// {
// public SearchRequest() {}
// private string _ID0EU;
// [ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"query")]
// [System.Xml.Serialization.XmlElementAttribute(@"query", Order = 1)]
// public string query
// {
// get { return _ID0EU; }
// set { _ID0EU = value; }
// }
// private int _ID0E6 = default(int);
// [ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"page_number")]
// [System.ComponentModel.DefaultValue(default(int))]
// [System.Xml.Serialization.XmlElementAttribute(@"page_number", Order = 2)]
// public int page_number
// {
// get { return _ID0E6; }
// set { _ID0E6 = value; }
// }
// private int _ID0EIB = default(int);
// [ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"result_per_page")]
// [System.ComponentModel.DefaultValue(default(int))]
// [System.Xml.Serialization.XmlElementAttribute(@"result_per_page", Order = 3)]
// public int result_per_page
// {
// get { return _ID0EIB; }
// set { _ID0EIB = value; }
// }
// }
// [System.Serializable, ProtoBuf.ProtoContract(Name=@"SearchResponse")]
// [System.Xml.Serialization.XmlType(TypeName=@"SearchResponse")]
// public partial class SearchResponse
// {
// public SearchResponse() {}
// private readonly System.Collections.Generic.List<string> _ID0EBC = new System.Collections.Generic.List<string>();
// [ProtoBuf.ProtoMember(1, Name=@"result")]
// [System.Xml.Serialization.XmlElementAttribute(@"result", Order = 1)]
// public System.Collections.Generic.List<string> result
// {
// get { return _ID0EBC; }
// set
// { // setter needed for XmlSerializer
// _ID0EBC.Clear();
// if(value != null)
// {
// _ID0EBC.AddRange(value);
// }
// }
// }
// }
// public interface ISearchService
// {
// SearchResponse Search(SearchRequest request);
// }
// public class SearchServiceClient : ProtoBuf.ServiceModel.RpcClient
// {
// public SearchServiceClient() : base(typeof(ISearchService)) { }
// SearchResponse Search(SearchRequest request)
// {
// return (SearchResponse) Send(@"Search", request);
// }
// }
// }
//#endif