gorealis v2 refactor (#5)
* Changing default timeout for start maintenance. * Upgrading dependencies to gorealis v2 and thrift 0.12.0 * Refactored to update to gorealis v2.
This commit is contained in:
parent
ad4dd9606e
commit
6ab5c9334d
1335 changed files with 137431 additions and 61530 deletions
82
vendor/git.apache.org/thrift.git/test/csharp/TestServer.cs
generated
vendored
82
vendor/git.apache.org/thrift.git/test/csharp/TestServer.cs
generated
vendored
|
@ -41,27 +41,28 @@ namespace Test
|
|||
public static int _clientID = -1;
|
||||
public delegate void TestLogDelegate(string msg, params object[] values);
|
||||
|
||||
public class TradeServerEventHandler : TServerEventHandler
|
||||
{
|
||||
public int callCount = 0;
|
||||
public void preServe()
|
||||
{
|
||||
callCount++;
|
||||
}
|
||||
public Object createContext(Thrift.Protocol.TProtocol input, Thrift.Protocol.TProtocol output)
|
||||
{
|
||||
callCount++;
|
||||
return null;
|
||||
}
|
||||
public void deleteContext(Object serverContext, Thrift.Protocol.TProtocol input, Thrift.Protocol.TProtocol output)
|
||||
{
|
||||
callCount++;
|
||||
}
|
||||
public void processContext(Object serverContext, Thrift.Transport.TTransport transport)
|
||||
{
|
||||
callCount++;
|
||||
}
|
||||
};
|
||||
public class TradeServerEventHandler : TServerEventHandler
|
||||
{
|
||||
public int callCount = 0;
|
||||
public void preServe()
|
||||
{
|
||||
callCount++;
|
||||
}
|
||||
public Object createContext(Thrift.Protocol.TProtocol input, Thrift.Protocol.TProtocol output)
|
||||
{
|
||||
callCount++;
|
||||
return null;
|
||||
}
|
||||
public void deleteContext(Object serverContext, Thrift.Protocol.TProtocol input, Thrift.Protocol.TProtocol output)
|
||||
{
|
||||
callCount++;
|
||||
}
|
||||
public void processContext(Object serverContext, Thrift.Transport.TTransport transport)
|
||||
{
|
||||
callCount++;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
public class TestHandler : ThriftTest.Iface, Thrift.TControllingHandler
|
||||
{
|
||||
|
@ -273,39 +274,24 @@ namespace Test
|
|||
return mapmap;
|
||||
}
|
||||
|
||||
// Insanity
|
||||
// returns:
|
||||
// { 1 => { 2 => argument,
|
||||
// 3 => argument,
|
||||
// },
|
||||
// 2 => { 6 => <empty Insanity struct>, },
|
||||
// }
|
||||
public Dictionary<long, Dictionary<Numberz, Insanity>> testInsanity(Insanity argument)
|
||||
{
|
||||
testLogDelegate.Invoke("testInsanity()");
|
||||
|
||||
Xtruct hello = new Xtruct();
|
||||
hello.String_thing = "Hello2";
|
||||
hello.Byte_thing = 2;
|
||||
hello.I32_thing = 2;
|
||||
hello.I64_thing = 2;
|
||||
|
||||
Xtruct goodbye = new Xtruct();
|
||||
goodbye.String_thing = "Goodbye4";
|
||||
goodbye.Byte_thing = (sbyte)4;
|
||||
goodbye.I32_thing = 4;
|
||||
goodbye.I64_thing = (long)4;
|
||||
|
||||
Insanity crazy = new Insanity();
|
||||
crazy.UserMap = new Dictionary<Numberz, long>();
|
||||
crazy.UserMap[Numberz.EIGHT] = (long)8;
|
||||
crazy.Xtructs = new List<Xtruct>();
|
||||
crazy.Xtructs.Add(goodbye);
|
||||
|
||||
Insanity looney = new Insanity();
|
||||
crazy.UserMap[Numberz.FIVE] = (long)5;
|
||||
crazy.Xtructs.Add(hello);
|
||||
|
||||
Dictionary<Numberz, Insanity> first_map = new Dictionary<Numberz, Insanity>();
|
||||
Dictionary<Numberz, Insanity> second_map = new Dictionary<Numberz, Insanity>(); ;
|
||||
|
||||
first_map[Numberz.TWO] = crazy;
|
||||
first_map[Numberz.THREE] = crazy;
|
||||
first_map[Numberz.TWO] = argument;
|
||||
first_map[Numberz.THREE] = argument;
|
||||
|
||||
second_map[Numberz.SIX] = looney;
|
||||
second_map[Numberz.SIX] = new Insanity();
|
||||
|
||||
Dictionary<long, Dictionary<Numberz, Insanity>> insane =
|
||||
new Dictionary<long, Dictionary<Numberz, Insanity>>();
|
||||
|
@ -469,7 +455,9 @@ namespace Test
|
|||
if (useEncryption)
|
||||
{
|
||||
string certPath = "../keys/server.p12";
|
||||
trans = new TTLSServerSocket(port, 0, useBufferedSockets, new X509Certificate2(certPath, "thrift"), null, null, SslProtocols.Tls);
|
||||
trans = new TTLSServerSocket(port, 0, useBufferedSockets, new X509Certificate2(certPath, "thrift"),
|
||||
null,
|
||||
null, SslProtocols.Tls);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue