blob: 981a6a88461e860dccf76e5236187efa467ecb48 (
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
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
|
// **********************************************************************
//
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
using System;
using System.Runtime;
using System.Runtime.Serialization;
using System.ServiceModel;
namespace Service
{
public class Sizes
{
public const int ByteSeqSize = 500000;
public const int StringSeqSize = 50000;
public const int StringDoubleSeqSize = 50000;
public const int FixedSeqSize = 50000;
}
[DataContract]
public struct StringDouble
{
[DataMember] public string s;
[DataMember] public double d;
};
[DataContract]
struct Fixed
{
[DataMember] public int i;
[DataMember] public int j;
[DataMember] public double d;
};
[ServiceContract]
interface Test
{
[OperationContract]
void sendByteSeq(byte[] seq);
[OperationContract]
byte[] recvByteSeq();
[OperationContract]
byte[] echoByteSeq(byte[] seq);
[OperationContract]
void sendStringSeq(string[] seq);
[OperationContract]
string[] recvStringSeq();
[OperationContract]
string[] echoStringSeq(string[] seq);
[OperationContract]
void sendStructSeq(StringDouble[] seq);
[OperationContract]
StringDouble[] recvStructSeq();
[OperationContract]
StringDouble[] echoStructSeq(StringDouble[] seq);
[OperationContract]
void sendFixedSeq(Fixed[] seq);
[OperationContract]
Fixed[] recvFixedSeq();
[OperationContract]
Fixed[] echoFixedSeq(Fixed[] seq);
[OperationContract]
void shutdown();
};
}
|