Upgrading dependency to Thrift 0.12.0
This commit is contained in:
parent
3e4590dcc0
commit
356978cb42
1302 changed files with 101701 additions and 26784 deletions
6
vendor/git.apache.org/thrift.git/lib/csharp/test/JSON/Properties/AssemblyInfo.cs
generated
vendored
6
vendor/git.apache.org/thrift.git/lib/csharp/test/JSON/Properties/AssemblyInfo.cs
generated
vendored
|
@ -27,9 +27,9 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyTitle("JSONTest")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("JSONTest")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014")]
|
||||
[assembly: AssemblyCompany("The Apache Software Foundation")]
|
||||
[assembly: AssemblyProduct("Thrift")]
|
||||
[assembly: AssemblyCopyright("The Apache Software Foundation")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
|
|
|
@ -27,9 +27,9 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyTitle("MultiplexClient")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("MultiplexClient")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2013 The Apache Software Foundation")]
|
||||
[assembly: AssemblyCompany("The Apache Software Foundation")]
|
||||
[assembly: AssemblyProduct("Thrift")]
|
||||
[assembly: AssemblyCopyright("The Apache Software Foundation")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
|
|
|
@ -27,9 +27,9 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyTitle("MultiplexServer")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("MultiplexServer")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2013 The Apache Software Foundation")]
|
||||
[assembly: AssemblyCompany("The Apache Software Foundation")]
|
||||
[assembly: AssemblyProduct("Thrift")]
|
||||
[assembly: AssemblyCopyright("The Apache Software Foundation")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
|
|
|
@ -41,9 +41,8 @@ namespace ThriftMVCTest.Controllers
|
|||
SecondService.IAsync asyncService =
|
||||
new SecondService.Client(new TBinaryProtocol(new THttpClient(new Uri(baseUri, "Async.thrift"))));
|
||||
|
||||
await asyncService.blahBlahAsync();
|
||||
var result = await asyncService.secondtestStringAsync("TestString");
|
||||
if (result != "TestString")
|
||||
if (result != "testString(\"TestString\")")
|
||||
{
|
||||
throw new Exception("The wrong result was returned");
|
||||
}
|
||||
|
@ -59,9 +58,8 @@ namespace ThriftMVCTest.Controllers
|
|||
SecondService.ISync service =
|
||||
new SecondService.Client(new TBinaryProtocol(new THttpClient(new Uri(baseUri, "Sync.thrift"))));
|
||||
|
||||
service.blahBlah();
|
||||
var result = service.secondtestString("TestString");
|
||||
if (result != "TestString")
|
||||
if (result != "testString(\"TestString\")")
|
||||
{
|
||||
throw new Exception("The wrong result was returned");
|
||||
}
|
||||
|
@ -69,4 +67,4 @@ namespace ThriftMVCTest.Controllers
|
|||
return RedirectToAction("Index");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyDescription("A web project for testing the thrift ASP.NET features.")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("The Apache Software Foundation")]
|
||||
[assembly: AssemblyProduct("ThriftMVCTest")]
|
||||
[assembly: AssemblyProduct("Thrift")]
|
||||
[assembly: AssemblyCopyright("The Apache Software Foundation")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
|
14
vendor/git.apache.org/thrift.git/lib/csharp/test/ThriftMVCTest/SecondServiceImpl.cs
generated
vendored
14
vendor/git.apache.org/thrift.git/lib/csharp/test/ThriftMVCTest/SecondServiceImpl.cs
generated
vendored
|
@ -24,24 +24,14 @@ namespace ThriftMVCTest
|
|||
{
|
||||
public class SecondServiceImpl : SecondService.IAsync, SecondService.ISync
|
||||
{
|
||||
public Task blahBlahAsync()
|
||||
{
|
||||
return Task.FromResult(0);
|
||||
}
|
||||
|
||||
public Task<string> secondtestStringAsync(string thing)
|
||||
{
|
||||
return Task.FromResult(thing);
|
||||
}
|
||||
|
||||
public void blahBlah()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public string secondtestString(string thing)
|
||||
{
|
||||
return thing;
|
||||
return "testString(\"" + thing + "\")";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue