diff --git a/src/csharp/EXPERIMENTAL-ONLY b/src/csharp/EXPERIMENTAL-ONLY new file mode 100644 index 0000000000000000000000000000000000000000..f18a81d919e3bc02d484f35dd513787713faf896 --- /dev/null +++ b/src/csharp/EXPERIMENTAL-ONLY @@ -0,0 +1 @@ +gRPC C# is work-in-progress and is not intended to be used. See README. diff --git a/src/csharp/GrpcCoreTests/.gitignore b/src/csharp/Grpc.Core.Tests/.gitignore similarity index 100% rename from src/csharp/GrpcCoreTests/.gitignore rename to src/csharp/Grpc.Core.Tests/.gitignore diff --git a/src/csharp/GrpcCoreTests/ClientServerTest.cs b/src/csharp/Grpc.Core.Tests/ClientServerTest.cs similarity index 100% rename from src/csharp/GrpcCoreTests/ClientServerTest.cs rename to src/csharp/Grpc.Core.Tests/ClientServerTest.cs diff --git a/src/csharp/GrpcCoreTests/GrpcCoreTests.csproj b/src/csharp/Grpc.Core.Tests/Grpc.Core.Tests.csproj similarity index 91% rename from src/csharp/GrpcCoreTests/GrpcCoreTests.csproj rename to src/csharp/Grpc.Core.Tests/Grpc.Core.Tests.csproj index ca52cd8f40d794269d9e95d44e4159103793cce0..687be3c0cb616cfb5be2d01c6bb77bda9ac3135d 100644 --- a/src/csharp/GrpcCoreTests/GrpcCoreTests.csproj +++ b/src/csharp/Grpc.Core.Tests/Grpc.Core.Tests.csproj @@ -7,8 +7,8 @@ <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{86EC5CB4-4EA2-40A2-8057-86542A0353BB}</ProjectGuid> <OutputType>Library</OutputType> - <RootNamespace>GrpcCoreTests</RootNamespace> - <AssemblyName>GrpcCoreTests</AssemblyName> + <RootNamespace>Grpc.Core.Tests</RootNamespace> + <AssemblyName>Grpc.Core.Tests</AssemblyName> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -44,9 +44,9 @@ </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ItemGroup> - <ProjectReference Include="..\GrpcCore\GrpcCore.csproj"> + <ProjectReference Include="..\Grpc.Core\Grpc.Core.csproj"> <Project>{CCC4440E-49F7-4790-B0AF-FEABB0837AE7}</Project> - <Name>GrpcCore</Name> + <Name>Grpc.Core</Name> </ProjectReference> </ItemGroup> <ItemGroup> diff --git a/src/csharp/GrpcCoreTests/GrpcEnvironmentTest.cs b/src/csharp/Grpc.Core.Tests/GrpcEnvironmentTest.cs similarity index 100% rename from src/csharp/GrpcCoreTests/GrpcEnvironmentTest.cs rename to src/csharp/Grpc.Core.Tests/GrpcEnvironmentTest.cs diff --git a/src/csharp/InteropClient/Properties/AssemblyInfo.cs b/src/csharp/Grpc.Core.Tests/Properties/AssemblyInfo.cs similarity index 91% rename from src/csharp/InteropClient/Properties/AssemblyInfo.cs rename to src/csharp/Grpc.Core.Tests/Properties/AssemblyInfo.cs index 3a13173ac77d66a3bdfcc232e67bda94a22abc95..499d931d2acf15cc93ef0d4c6534ad0982fa80c3 100644 --- a/src/csharp/InteropClient/Properties/AssemblyInfo.cs +++ b/src/csharp/Grpc.Core.Tests/Properties/AssemblyInfo.cs @@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. -[assembly: AssemblyTitle("InteropClient")] +[assembly: AssemblyTitle("Grpc.Core.Tests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] @@ -14,7 +14,7 @@ using System.Runtime.CompilerServices; // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". // The form "{Major}.{Minor}.*" will automatically update the build and revision, // and "{Major}.{Minor}.{Build}.*" will update just the revision. -[assembly: AssemblyVersion("0.9.*")] +[assembly: AssemblyVersion("0.1.*")] // The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. //[assembly: AssemblyDelaySign(false)] diff --git a/src/csharp/GrpcCoreTests/ServerTest.cs b/src/csharp/Grpc.Core.Tests/ServerTest.cs similarity index 100% rename from src/csharp/GrpcCoreTests/ServerTest.cs rename to src/csharp/Grpc.Core.Tests/ServerTest.cs diff --git a/src/csharp/GrpcCoreTests/TestResult.xml b/src/csharp/Grpc.Core.Tests/TestResult.xml similarity index 100% rename from src/csharp/GrpcCoreTests/TestResult.xml rename to src/csharp/Grpc.Core.Tests/TestResult.xml diff --git a/src/csharp/GrpcCoreTests/TimespecTest.cs b/src/csharp/Grpc.Core.Tests/TimespecTest.cs similarity index 100% rename from src/csharp/GrpcCoreTests/TimespecTest.cs rename to src/csharp/Grpc.Core.Tests/TimespecTest.cs diff --git a/src/csharp/GrpcCoreTests/packages.config b/src/csharp/Grpc.Core.Tests/packages.config similarity index 100% rename from src/csharp/GrpcCoreTests/packages.config rename to src/csharp/Grpc.Core.Tests/packages.config diff --git a/src/csharp/GrpcCore/.gitignore b/src/csharp/Grpc.Core/.gitignore similarity index 100% rename from src/csharp/GrpcCore/.gitignore rename to src/csharp/Grpc.Core/.gitignore diff --git a/src/csharp/GrpcCore/Call.cs b/src/csharp/Grpc.Core/Call.cs similarity index 100% rename from src/csharp/GrpcCore/Call.cs rename to src/csharp/Grpc.Core/Call.cs diff --git a/src/csharp/GrpcCore/Calls.cs b/src/csharp/Grpc.Core/Calls.cs similarity index 100% rename from src/csharp/GrpcCore/Calls.cs rename to src/csharp/Grpc.Core/Calls.cs diff --git a/src/csharp/GrpcCore/Channel.cs b/src/csharp/Grpc.Core/Channel.cs similarity index 100% rename from src/csharp/GrpcCore/Channel.cs rename to src/csharp/Grpc.Core/Channel.cs diff --git a/src/csharp/GrpcCore/ClientStreamingAsyncResult.cs b/src/csharp/Grpc.Core/ClientStreamingAsyncResult.cs similarity index 100% rename from src/csharp/GrpcCore/ClientStreamingAsyncResult.cs rename to src/csharp/Grpc.Core/ClientStreamingAsyncResult.cs diff --git a/src/csharp/GrpcCore/GrpcCore.csproj b/src/csharp/Grpc.Core/Grpc.Core.csproj similarity index 97% rename from src/csharp/GrpcCore/GrpcCore.csproj rename to src/csharp/Grpc.Core/Grpc.Core.csproj index ee76b742ce4af4cc2c1ee61ab691de9651ee1cfd..4ad32e10e43b51cf2a11142448f0e2d4315ff8cf 100644 --- a/src/csharp/GrpcCore/GrpcCore.csproj +++ b/src/csharp/Grpc.Core/Grpc.Core.csproj @@ -7,8 +7,8 @@ <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{CCC4440E-49F7-4790-B0AF-FEABB0837AE7}</ProjectGuid> <OutputType>Library</OutputType> - <RootNamespace>GrpcCore</RootNamespace> - <AssemblyName>GrpcCore</AssemblyName> + <RootNamespace>Grpc.Core</RootNamespace> + <AssemblyName>Grpc.Core</AssemblyName> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> diff --git a/src/csharp/GrpcCore/GrpcEnvironment.cs b/src/csharp/Grpc.Core/GrpcEnvironment.cs similarity index 100% rename from src/csharp/GrpcCore/GrpcEnvironment.cs rename to src/csharp/Grpc.Core/GrpcEnvironment.cs diff --git a/src/csharp/GrpcCore/Internal/AsyncCall.cs b/src/csharp/Grpc.Core/Internal/AsyncCall.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/AsyncCall.cs rename to src/csharp/Grpc.Core/Internal/AsyncCall.cs diff --git a/src/csharp/GrpcCore/Internal/BatchContextSafeHandleNotOwned.cs b/src/csharp/Grpc.Core/Internal/BatchContextSafeHandleNotOwned.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/BatchContextSafeHandleNotOwned.cs rename to src/csharp/Grpc.Core/Internal/BatchContextSafeHandleNotOwned.cs diff --git a/src/csharp/GrpcCore/Internal/CallSafeHandle.cs b/src/csharp/Grpc.Core/Internal/CallSafeHandle.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/CallSafeHandle.cs rename to src/csharp/Grpc.Core/Internal/CallSafeHandle.cs diff --git a/src/csharp/GrpcCore/Internal/ChannelSafeHandle.cs b/src/csharp/Grpc.Core/Internal/ChannelSafeHandle.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/ChannelSafeHandle.cs rename to src/csharp/Grpc.Core/Internal/ChannelSafeHandle.cs diff --git a/src/csharp/GrpcCore/Internal/ClientStreamingInputObserver.cs b/src/csharp/Grpc.Core/Internal/ClientStreamingInputObserver.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/ClientStreamingInputObserver.cs rename to src/csharp/Grpc.Core/Internal/ClientStreamingInputObserver.cs diff --git a/src/csharp/GrpcCore/Internal/CompletionQueueSafeHandle.cs b/src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/CompletionQueueSafeHandle.cs rename to src/csharp/Grpc.Core/Internal/CompletionQueueSafeHandle.cs diff --git a/src/csharp/GrpcCore/Internal/Enums.cs b/src/csharp/Grpc.Core/Internal/Enums.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/Enums.cs rename to src/csharp/Grpc.Core/Internal/Enums.cs diff --git a/src/csharp/GrpcCore/Internal/GrpcThreadPool.cs b/src/csharp/Grpc.Core/Internal/GrpcThreadPool.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/GrpcThreadPool.cs rename to src/csharp/Grpc.Core/Internal/GrpcThreadPool.cs diff --git a/src/csharp/GrpcCore/Internal/SafeHandleZeroIsInvalid.cs b/src/csharp/Grpc.Core/Internal/SafeHandleZeroIsInvalid.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/SafeHandleZeroIsInvalid.cs rename to src/csharp/Grpc.Core/Internal/SafeHandleZeroIsInvalid.cs diff --git a/src/csharp/GrpcCore/Internal/ServerSafeHandle.cs b/src/csharp/Grpc.Core/Internal/ServerSafeHandle.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/ServerSafeHandle.cs rename to src/csharp/Grpc.Core/Internal/ServerSafeHandle.cs diff --git a/src/csharp/GrpcCore/Internal/ServerStreamingOutputObserver.cs b/src/csharp/Grpc.Core/Internal/ServerStreamingOutputObserver.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/ServerStreamingOutputObserver.cs rename to src/csharp/Grpc.Core/Internal/ServerStreamingOutputObserver.cs diff --git a/src/csharp/GrpcCore/Internal/Timespec.cs b/src/csharp/Grpc.Core/Internal/Timespec.cs similarity index 100% rename from src/csharp/GrpcCore/Internal/Timespec.cs rename to src/csharp/Grpc.Core/Internal/Timespec.cs diff --git a/src/csharp/GrpcCore/Marshaller.cs b/src/csharp/Grpc.Core/Marshaller.cs similarity index 100% rename from src/csharp/GrpcCore/Marshaller.cs rename to src/csharp/Grpc.Core/Marshaller.cs diff --git a/src/csharp/GrpcCore/Method.cs b/src/csharp/Grpc.Core/Method.cs similarity index 100% rename from src/csharp/GrpcCore/Method.cs rename to src/csharp/Grpc.Core/Method.cs diff --git a/src/csharp/GrpcCore/Properties/AssemblyInfo.cs b/src/csharp/Grpc.Core/Properties/AssemblyInfo.cs similarity index 87% rename from src/csharp/GrpcCore/Properties/AssemblyInfo.cs rename to src/csharp/Grpc.Core/Properties/AssemblyInfo.cs index ed3a7af8f409b1a508aab6e5896efa8c32a3dd48..37ba1e2263c3f09c378262ab4b6a45c3f36baad3 100644 --- a/src/csharp/GrpcCore/Properties/AssemblyInfo.cs +++ b/src/csharp/Grpc.Core/Properties/AssemblyInfo.cs @@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. -[assembly: AssemblyTitle ("GrpcCore")] +[assembly: AssemblyTitle ("Grpc.Core")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ("")] [assembly: AssemblyCompany ("")] @@ -14,11 +14,11 @@ using System.Runtime.CompilerServices; // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". // The form "{Major}.{Minor}.*" will automatically update the build and revision, // and "{Major}.{Minor}.{Build}.*" will update just the revision. -[assembly: AssemblyVersion ("0.9.*")] +[assembly: AssemblyVersion ("0.1.*")] // The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. //[assembly: AssemblyDelaySign(false)] //[assembly: AssemblyKeyFile("")] -[assembly: InternalsVisibleTo("GrpcCoreTests")] +[assembly: InternalsVisibleTo("Grpc.Core.Tests")] diff --git a/src/csharp/GrpcCore/RpcException.cs b/src/csharp/Grpc.Core/RpcException.cs similarity index 100% rename from src/csharp/GrpcCore/RpcException.cs rename to src/csharp/Grpc.Core/RpcException.cs diff --git a/src/csharp/GrpcCore/Server.cs b/src/csharp/Grpc.Core/Server.cs similarity index 100% rename from src/csharp/GrpcCore/Server.cs rename to src/csharp/Grpc.Core/Server.cs diff --git a/src/csharp/GrpcCore/ServerCallHandler.cs b/src/csharp/Grpc.Core/ServerCallHandler.cs similarity index 100% rename from src/csharp/GrpcCore/ServerCallHandler.cs rename to src/csharp/Grpc.Core/ServerCallHandler.cs diff --git a/src/csharp/GrpcCore/ServerCalls.cs b/src/csharp/Grpc.Core/ServerCalls.cs similarity index 100% rename from src/csharp/GrpcCore/ServerCalls.cs rename to src/csharp/Grpc.Core/ServerCalls.cs diff --git a/src/csharp/GrpcCore/ServerServiceDefinition.cs b/src/csharp/Grpc.Core/ServerServiceDefinition.cs similarity index 100% rename from src/csharp/GrpcCore/ServerServiceDefinition.cs rename to src/csharp/Grpc.Core/ServerServiceDefinition.cs diff --git a/src/csharp/GrpcCore/Status.cs b/src/csharp/Grpc.Core/Status.cs similarity index 100% rename from src/csharp/GrpcCore/Status.cs rename to src/csharp/Grpc.Core/Status.cs diff --git a/src/csharp/GrpcCore/StatusCode.cs b/src/csharp/Grpc.Core/StatusCode.cs similarity index 100% rename from src/csharp/GrpcCore/StatusCode.cs rename to src/csharp/Grpc.Core/StatusCode.cs diff --git a/src/csharp/GrpcCore/Utils/RecordingObserver.cs b/src/csharp/Grpc.Core/Utils/RecordingObserver.cs similarity index 100% rename from src/csharp/GrpcCore/Utils/RecordingObserver.cs rename to src/csharp/Grpc.Core/Utils/RecordingObserver.cs diff --git a/src/csharp/GrpcCore/Utils/RecordingQueue.cs b/src/csharp/Grpc.Core/Utils/RecordingQueue.cs similarity index 100% rename from src/csharp/GrpcCore/Utils/RecordingQueue.cs rename to src/csharp/Grpc.Core/Utils/RecordingQueue.cs diff --git a/src/csharp/MathClient/.gitignore b/src/csharp/Grpc.Examples.MathClient/.gitignore similarity index 100% rename from src/csharp/MathClient/.gitignore rename to src/csharp/Grpc.Examples.MathClient/.gitignore diff --git a/src/csharp/MathClient/MathClient.csproj b/src/csharp/Grpc.Examples.MathClient/Grpc.Examples.MathClient.csproj similarity index 86% rename from src/csharp/MathClient/MathClient.csproj rename to src/csharp/Grpc.Examples.MathClient/Grpc.Examples.MathClient.csproj index 74213653d21dc9252dd2d78e8962038d221051cd..19bb4347aa8ecf49d15bdbd05313bd3dff2270e5 100644 --- a/src/csharp/MathClient/MathClient.csproj +++ b/src/csharp/Grpc.Examples.MathClient/Grpc.Examples.MathClient.csproj @@ -7,8 +7,8 @@ <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{61ECB8EE-0C96-4F8E-B187-8E4D227417C0}</ProjectGuid> <OutputType>Exe</OutputType> - <RootNamespace>GrpcDemo</RootNamespace> - <AssemblyName>GrpcDemo</AssemblyName> + <RootNamespace>math</RootNamespace> + <AssemblyName>MathClient</AssemblyName> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> @@ -40,13 +40,13 @@ </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ItemGroup> - <ProjectReference Include="..\GrpcApi\GrpcApi.csproj"> - <Project>{7DC1433E-3225-42C7-B7EA-546D56E27A4B}</Project> - <Name>GrpcApi</Name> - </ProjectReference> - <ProjectReference Include="..\GrpcCore\GrpcCore.csproj"> + <ProjectReference Include="..\Grpc.Core\Grpc.Core.csproj"> <Project>{CCC4440E-49F7-4790-B0AF-FEABB0837AE7}</Project> - <Name>GrpcCore</Name> + <Name>Grpc.Core</Name> + </ProjectReference> + <ProjectReference Include="..\Grpc.Examples\Grpc.Examples.csproj"> + <Project>{7DC1433E-3225-42C7-B7EA-546D56E27A4B}</Project> + <Name>Grpc.Examples</Name> </ProjectReference> </ItemGroup> -</Project> \ No newline at end of file +</Project> diff --git a/src/csharp/MathClient/MathClient.cs b/src/csharp/Grpc.Examples.MathClient/MathClient.cs similarity index 100% rename from src/csharp/MathClient/MathClient.cs rename to src/csharp/Grpc.Examples.MathClient/MathClient.cs diff --git a/src/csharp/MathClient/Properties/AssemblyInfo.cs b/src/csharp/Grpc.Examples.MathClient/Properties/AssemblyInfo.cs similarity index 90% rename from src/csharp/MathClient/Properties/AssemblyInfo.cs rename to src/csharp/Grpc.Examples.MathClient/Properties/AssemblyInfo.cs index d24412f497801c8ab0bdd87fc8aa0bafb8275dd5..bdd7189db2f43ee1d04fbf153460ecc31b9d568f 100644 --- a/src/csharp/MathClient/Properties/AssemblyInfo.cs +++ b/src/csharp/Grpc.Examples.MathClient/Properties/AssemblyInfo.cs @@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. -[assembly: AssemblyTitle ("MathClient")] +[assembly: AssemblyTitle ("Grpc.Examples.MathClient")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ("")] [assembly: AssemblyCompany ("")] @@ -14,7 +14,7 @@ using System.Runtime.CompilerServices; // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". // The form "{Major}.{Minor}.*" will automatically update the build and revision, // and "{Major}.{Minor}.{Build}.*" will update just the revision. -[assembly: AssemblyVersion ("0.9.*")] +[assembly: AssemblyVersion ("0.1.*")] // The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. //[assembly: AssemblyDelaySign(false)] diff --git a/src/csharp/GrpcApi/.gitignore b/src/csharp/Grpc.Examples.Tests/.gitignore similarity index 100% rename from src/csharp/GrpcApi/.gitignore rename to src/csharp/Grpc.Examples.Tests/.gitignore diff --git a/src/csharp/GrpcApiTests/GrpcApiTests.csproj b/src/csharp/Grpc.Examples.Tests/Grpc.Examples.Tests.csproj similarity index 82% rename from src/csharp/GrpcApiTests/GrpcApiTests.csproj rename to src/csharp/Grpc.Examples.Tests/Grpc.Examples.Tests.csproj index cb955cff41b12e9ac04d047f8eae8aee7c58813f..cf5a6400796e66b8daf36d0890602e44d15f4ffd 100644 --- a/src/csharp/GrpcApiTests/GrpcApiTests.csproj +++ b/src/csharp/Grpc.Examples.Tests/Grpc.Examples.Tests.csproj @@ -7,8 +7,8 @@ <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{143B1C29-C442-4BE0-BF3F-A8F92288AC9F}</ProjectGuid> <OutputType>Library</OutputType> - <RootNamespace>GrpcApiTests</RootNamespace> - <AssemblyName>GrpcApiTests</AssemblyName> + <RootNamespace>Grpc.Examples.Tests</RootNamespace> + <AssemblyName>Grpc.Examples.Tests</AssemblyName> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -30,14 +30,13 @@ <ConsolePause>false</ConsolePause> </PropertyGroup> <ItemGroup> - <Reference Include="Google.ProtocolBuffers, Version=2.4.1.521, Culture=neutral, PublicKeyToken=55f7125234beb589, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\packages\Google.ProtocolBuffers.2.4.1.521\lib\net40\Google.ProtocolBuffers.dll</HintPath> - </Reference> <Reference Include="nunit.framework"> <HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath> </Reference> <Reference Include="System" /> + <Reference Include="Google.ProtocolBuffers"> + <HintPath>..\packages\Google.ProtocolBuffers.2.4.1.521\lib\net40\Google.ProtocolBuffers.dll</HintPath> + </Reference> </ItemGroup> <ItemGroup> <Compile Include="Properties\AssemblyInfo.cs" /> @@ -45,13 +44,13 @@ </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ItemGroup> - <ProjectReference Include="..\GrpcApi\GrpcApi.csproj"> - <Project>{7DC1433E-3225-42C7-B7EA-546D56E27A4B}</Project> - <Name>GrpcApi</Name> - </ProjectReference> - <ProjectReference Include="..\GrpcCore\GrpcCore.csproj"> + <ProjectReference Include="..\Grpc.Core\Grpc.Core.csproj"> <Project>{CCC4440E-49F7-4790-B0AF-FEABB0837AE7}</Project> - <Name>GrpcCore</Name> + <Name>Grpc.Core</Name> + </ProjectReference> + <ProjectReference Include="..\Grpc.Examples\Grpc.Examples.csproj"> + <Project>{7DC1433E-3225-42C7-B7EA-546D56E27A4B}</Project> + <Name>Grpc.Examples</Name> </ProjectReference> </ItemGroup> <ItemGroup> @@ -60,4 +59,4 @@ <ItemGroup> <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> </ItemGroup> -</Project> \ No newline at end of file +</Project> diff --git a/src/csharp/GrpcApiTests/MathClientServerTests.cs b/src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs similarity index 100% rename from src/csharp/GrpcApiTests/MathClientServerTests.cs rename to src/csharp/Grpc.Examples.Tests/MathClientServerTests.cs diff --git a/src/csharp/GrpcCoreTests/Properties/AssemblyInfo.cs b/src/csharp/Grpc.Examples.Tests/Properties/AssemblyInfo.cs similarity index 91% rename from src/csharp/GrpcCoreTests/Properties/AssemblyInfo.cs rename to src/csharp/Grpc.Examples.Tests/Properties/AssemblyInfo.cs index 07f35556dfe2aaaf0c96ce0ccc31f47b669b55c8..44b075ac0a805161e1bd7c8138a7ae218dcfbbc7 100644 --- a/src/csharp/GrpcCoreTests/Properties/AssemblyInfo.cs +++ b/src/csharp/Grpc.Examples.Tests/Properties/AssemblyInfo.cs @@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. -[assembly: AssemblyTitle("GrpcCoreTests")] +[assembly: AssemblyTitle("Grpc.Examples.Tests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] @@ -14,7 +14,7 @@ using System.Runtime.CompilerServices; // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". // The form "{Major}.{Minor}.*" will automatically update the build and revision, // and "{Major}.{Minor}.{Build}.*" will update just the revision. -[assembly: AssemblyVersion("0.9.*")] +[assembly: AssemblyVersion("0.1.*")] // The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. //[assembly: AssemblyDelaySign(false)] diff --git a/src/csharp/GrpcApiTests/packages.config b/src/csharp/Grpc.Examples.Tests/packages.config similarity index 100% rename from src/csharp/GrpcApiTests/packages.config rename to src/csharp/Grpc.Examples.Tests/packages.config diff --git a/src/csharp/GrpcApiTests/.gitignore b/src/csharp/Grpc.Examples/.gitignore similarity index 100% rename from src/csharp/GrpcApiTests/.gitignore rename to src/csharp/Grpc.Examples/.gitignore diff --git a/src/csharp/GrpcApi/GrpcApi.csproj b/src/csharp/Grpc.Examples/Grpc.Examples.csproj similarity index 81% rename from src/csharp/GrpcApi/GrpcApi.csproj rename to src/csharp/Grpc.Examples/Grpc.Examples.csproj index 5a4ae67bd55e28c9b2349ec24b7fbb1cb8992f0d..1609c4e3dfd9c7dcea5e1dd07c5620656d322cd7 100644 --- a/src/csharp/GrpcApi/GrpcApi.csproj +++ b/src/csharp/Grpc.Examples/Grpc.Examples.csproj @@ -7,8 +7,8 @@ <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{7DC1433E-3225-42C7-B7EA-546D56E27A4B}</ProjectGuid> <OutputType>Library</OutputType> - <RootNamespace>GrpcApi</RootNamespace> - <AssemblyName>GrpcApi</AssemblyName> + <RootNamespace>Grpc.Examples</RootNamespace> + <AssemblyName>Grpc.Examples</AssemblyName> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> @@ -30,10 +30,6 @@ <ConsolePause>false</ConsolePause> </PropertyGroup> <ItemGroup> - <Reference Include="Google.ProtocolBuffers, Version=2.4.1.521, Culture=neutral, PublicKeyToken=55f7125234beb589, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\packages\Google.ProtocolBuffers.2.4.1.521\lib\net40\Google.ProtocolBuffers.dll</HintPath> - </Reference> <Reference Include="System" /> <Reference Include="System.Reactive.Core"> <HintPath>..\packages\Rx-Core.2.2.5\lib\net45\System.Reactive.Core.dll</HintPath> @@ -48,29 +44,26 @@ <Reference Include="System.Reactive.PlatformServices"> <HintPath>..\packages\Rx-PlatformServices.2.2.5\lib\net45\System.Reactive.PlatformServices.dll</HintPath> </Reference> + <Reference Include="Google.ProtocolBuffers"> + <HintPath>..\packages\Google.ProtocolBuffers.2.4.1.521\lib\net40\Google.ProtocolBuffers.dll</HintPath> + </Reference> </ItemGroup> <ItemGroup> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Math.cs" /> <Compile Include="MathGrpc.cs" /> <Compile Include="MathServiceImpl.cs" /> - <Compile Include="Empty.cs" /> - <Compile Include="Messages.cs" /> - <Compile Include="TestServiceGrpc.cs" /> <Compile Include="MathExamples.cs" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ItemGroup> - <ProjectReference Include="..\GrpcCore\GrpcCore.csproj"> + <ProjectReference Include="..\Grpc.Core\Grpc.Core.csproj"> <Project>{CCC4440E-49F7-4790-B0AF-FEABB0837AE7}</Project> - <Name>GrpcCore</Name> + <Name>Grpc.Core</Name> </ProjectReference> </ItemGroup> <ItemGroup> <None Include="packages.config" /> <None Include="proto\math.proto" /> - <None Include="proto\empty.proto" /> - <None Include="proto\messages.proto" /> - <None Include="proto\test.proto" /> </ItemGroup> </Project> \ No newline at end of file diff --git a/src/csharp/GrpcApi/Math.cs b/src/csharp/Grpc.Examples/Math.cs similarity index 100% rename from src/csharp/GrpcApi/Math.cs rename to src/csharp/Grpc.Examples/Math.cs diff --git a/src/csharp/GrpcApi/MathExamples.cs b/src/csharp/Grpc.Examples/MathExamples.cs similarity index 100% rename from src/csharp/GrpcApi/MathExamples.cs rename to src/csharp/Grpc.Examples/MathExamples.cs diff --git a/src/csharp/GrpcApi/MathGrpc.cs b/src/csharp/Grpc.Examples/MathGrpc.cs similarity index 100% rename from src/csharp/GrpcApi/MathGrpc.cs rename to src/csharp/Grpc.Examples/MathGrpc.cs diff --git a/src/csharp/GrpcApi/MathServiceImpl.cs b/src/csharp/Grpc.Examples/MathServiceImpl.cs similarity index 100% rename from src/csharp/GrpcApi/MathServiceImpl.cs rename to src/csharp/Grpc.Examples/MathServiceImpl.cs diff --git a/src/csharp/GrpcApi/Properties/AssemblyInfo.cs b/src/csharp/Grpc.Examples/Properties/AssemblyInfo.cs similarity index 91% rename from src/csharp/GrpcApi/Properties/AssemblyInfo.cs rename to src/csharp/Grpc.Examples/Properties/AssemblyInfo.cs index 96f142dae9a798c8a85be34e3aee2094f7b4ca8d..7603db7ffd135be4ee2b10adcbf928bc30b8e3b3 100644 --- a/src/csharp/GrpcApi/Properties/AssemblyInfo.cs +++ b/src/csharp/Grpc.Examples/Properties/AssemblyInfo.cs @@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. -[assembly: AssemblyTitle ("GrpcApi")] +[assembly: AssemblyTitle ("Grpc.Examples")] [assembly: AssemblyDescription ("")] [assembly: AssemblyConfiguration ("")] [assembly: AssemblyCompany ("")] @@ -14,7 +14,7 @@ using System.Runtime.CompilerServices; // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". // The form "{Major}.{Minor}.*" will automatically update the build and revision, // and "{Major}.{Minor}.{Build}.*" will update just the revision. -[assembly: AssemblyVersion ("0.9.*")] +[assembly: AssemblyVersion ("0.1.*")] // The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. //[assembly: AssemblyDelaySign(false)] diff --git a/src/csharp/GrpcApi/packages.config b/src/csharp/Grpc.Examples/packages.config similarity index 100% rename from src/csharp/GrpcApi/packages.config rename to src/csharp/Grpc.Examples/packages.config diff --git a/src/csharp/GrpcApi/proto/math.proto b/src/csharp/Grpc.Examples/proto/math.proto similarity index 100% rename from src/csharp/GrpcApi/proto/math.proto rename to src/csharp/Grpc.Examples/proto/math.proto diff --git a/src/csharp/InteropClient/.gitignore b/src/csharp/Grpc.IntegrationTesting/.gitignore similarity index 100% rename from src/csharp/InteropClient/.gitignore rename to src/csharp/Grpc.IntegrationTesting/.gitignore diff --git a/src/csharp/InteropClient/Client.cs b/src/csharp/Grpc.IntegrationTesting/Client.cs similarity index 99% rename from src/csharp/InteropClient/Client.cs rename to src/csharp/Grpc.IntegrationTesting/Client.cs index fdec6efd2ef2a3b26aad5a1afef7da2a6e5ec56d..bb650a112de5600ffa795dcbe034c11d3b0389d1 100644 --- a/src/csharp/InteropClient/Client.cs +++ b/src/csharp/Grpc.IntegrationTesting/Client.cs @@ -40,7 +40,7 @@ using Grpc.Core.Utils; using NUnit.Framework; using grpc.testing; -namespace Grpc.Interop +namespace Grpc.IntegrationTesting { class Client { diff --git a/src/csharp/GrpcApi/Empty.cs b/src/csharp/Grpc.IntegrationTesting/Empty.cs similarity index 100% rename from src/csharp/GrpcApi/Empty.cs rename to src/csharp/Grpc.IntegrationTesting/Empty.cs diff --git a/src/csharp/InteropClient/InteropClient.csproj b/src/csharp/Grpc.IntegrationTesting/Grpc.IntegrationTesting.csproj similarity index 78% rename from src/csharp/InteropClient/InteropClient.csproj rename to src/csharp/Grpc.IntegrationTesting/Grpc.IntegrationTesting.csproj index 29590f4950854927e98bb21a2b51ce1b30c710e9..9b46a644bc1c6cc7ff7be937b34896786a31bea5 100644 --- a/src/csharp/InteropClient/InteropClient.csproj +++ b/src/csharp/Grpc.IntegrationTesting/Grpc.IntegrationTesting.csproj @@ -7,9 +7,9 @@ <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{C61154BA-DD4A-4838-8420-0162A28925E0}</ProjectGuid> <OutputType>Exe</OutputType> - <RootNamespace>InteropClient</RootNamespace> - <AssemblyName>InteropClient</AssemblyName> - <StartupObject>Grpc.Interop.Client</StartupObject> + <RootNamespace>Grpc.IntegrationTesting</RootNamespace> + <AssemblyName>Grpc.IntegrationTesting</AssemblyName> + <StartupObject>Grpc.IntegrationTesting.Client</StartupObject> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> @@ -44,19 +44,24 @@ <ItemGroup> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Client.cs" /> + <Compile Include="TestServiceGrpc.cs" /> + <Compile Include="Empty.cs" /> + <Compile Include="Messages.cs" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <ItemGroup> - <ProjectReference Include="..\GrpcCore\GrpcCore.csproj"> + <ProjectReference Include="..\Grpc.Core\Grpc.Core.csproj"> <Project>{CCC4440E-49F7-4790-B0AF-FEABB0837AE7}</Project> - <Name>GrpcCore</Name> - </ProjectReference> - <ProjectReference Include="..\GrpcApi\GrpcApi.csproj"> - <Project>{7DC1433E-3225-42C7-B7EA-546D56E27A4B}</Project> - <Name>GrpcApi</Name> + <Name>Grpc.Core</Name> </ProjectReference> </ItemGroup> <ItemGroup> <None Include="packages.config" /> + <None Include="proto\test.proto" /> + <None Include="proto\empty.proto" /> + <None Include="proto\messages.proto" /> + </ItemGroup> + <ItemGroup> + <Folder Include="proto\" /> </ItemGroup> -</Project> \ No newline at end of file +</Project> diff --git a/src/csharp/GrpcApi/Messages.cs b/src/csharp/Grpc.IntegrationTesting/Messages.cs similarity index 100% rename from src/csharp/GrpcApi/Messages.cs rename to src/csharp/Grpc.IntegrationTesting/Messages.cs diff --git a/src/csharp/GrpcApiTests/Properties/AssemblyInfo.cs b/src/csharp/Grpc.IntegrationTesting/Properties/AssemblyInfo.cs similarity index 91% rename from src/csharp/GrpcApiTests/Properties/AssemblyInfo.cs rename to src/csharp/Grpc.IntegrationTesting/Properties/AssemblyInfo.cs index ac3cfca52e13f3cc90550e119f2071684b64858c..f633c19132e2eab39fb8b9cadfc68a41c1477b68 100644 --- a/src/csharp/GrpcApiTests/Properties/AssemblyInfo.cs +++ b/src/csharp/Grpc.IntegrationTesting/Properties/AssemblyInfo.cs @@ -3,7 +3,7 @@ using System.Runtime.CompilerServices; // Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. -[assembly: AssemblyTitle("GrpcApiTests")] +[assembly: AssemblyTitle("Grpc.IntegrationTesting")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] @@ -14,7 +14,7 @@ using System.Runtime.CompilerServices; // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". // The form "{Major}.{Minor}.*" will automatically update the build and revision, // and "{Major}.{Minor}.{Build}.*" will update just the revision. -[assembly: AssemblyVersion("0.9.*")] +[assembly: AssemblyVersion("0.1.*")] // The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. //[assembly: AssemblyDelaySign(false)] diff --git a/src/csharp/GrpcApi/TestServiceGrpc.cs b/src/csharp/Grpc.IntegrationTesting/TestServiceGrpc.cs similarity index 99% rename from src/csharp/GrpcApi/TestServiceGrpc.cs rename to src/csharp/Grpc.IntegrationTesting/TestServiceGrpc.cs index 15700e40ac58e3eee775b6ab14ba271a305d89a4..b71704bcc7b05e439f778cd771450fa732a2d2b5 100644 --- a/src/csharp/GrpcApi/TestServiceGrpc.cs +++ b/src/csharp/Grpc.IntegrationTesting/TestServiceGrpc.cs @@ -33,7 +33,6 @@ using System; using System.Collections.Generic; -using System.Reactive.Linq; using System.Threading; using System.Threading.Tasks; using Grpc.Core; diff --git a/src/csharp/InteropClient/packages.config b/src/csharp/Grpc.IntegrationTesting/packages.config similarity index 100% rename from src/csharp/InteropClient/packages.config rename to src/csharp/Grpc.IntegrationTesting/packages.config diff --git a/src/csharp/GrpcApi/proto/empty.proto b/src/csharp/Grpc.IntegrationTesting/proto/empty.proto similarity index 100% rename from src/csharp/GrpcApi/proto/empty.proto rename to src/csharp/Grpc.IntegrationTesting/proto/empty.proto diff --git a/src/csharp/GrpcApi/proto/messages.proto b/src/csharp/Grpc.IntegrationTesting/proto/messages.proto similarity index 100% rename from src/csharp/GrpcApi/proto/messages.proto rename to src/csharp/Grpc.IntegrationTesting/proto/messages.proto diff --git a/src/csharp/GrpcApi/proto/test.proto b/src/csharp/Grpc.IntegrationTesting/proto/test.proto similarity index 100% rename from src/csharp/GrpcApi/proto/test.proto rename to src/csharp/Grpc.IntegrationTesting/proto/test.proto diff --git a/src/csharp/Grpc.sln b/src/csharp/Grpc.sln index a7b2c9b58049f7de32496e1482fb6c1c1a7d3f94..a544eb1c338f5a11bf3ae564ad1e4335176ed1c4 100644 --- a/src/csharp/Grpc.sln +++ b/src/csharp/Grpc.sln @@ -1,17 +1,17 @@  Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GrpcApi", "GrpcApi\GrpcApi.csproj", "{7DC1433E-3225-42C7-B7EA-546D56E27A4B}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Grpc.Examples", "Grpc.Examples\Grpc.Examples.csproj", "{7DC1433E-3225-42C7-B7EA-546D56E27A4B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GrpcCore", "GrpcCore\GrpcCore.csproj", "{CCC4440E-49F7-4790-B0AF-FEABB0837AE7}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Grpc.Core", "Grpc.Core\Grpc.Core.csproj", "{CCC4440E-49F7-4790-B0AF-FEABB0837AE7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GrpcCoreTests", "GrpcCoreTests\GrpcCoreTests.csproj", "{86EC5CB4-4EA2-40A2-8057-86542A0353BB}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Grpc.Core.Tests", "Grpc.Core.Tests\Grpc.Core.Tests.csproj", "{86EC5CB4-4EA2-40A2-8057-86542A0353BB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GrpcApiTests", "GrpcApiTests\GrpcApiTests.csproj", "{143B1C29-C442-4BE0-BF3F-A8F92288AC9F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Grpc.Examples.Tests", "Grpc.Examples.Tests\Grpc.Examples.Tests.csproj", "{143B1C29-C442-4BE0-BF3F-A8F92288AC9F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MathClient", "MathClient\MathClient.csproj", "{61ECB8EE-0C96-4F8E-B187-8E4D227417C0}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Grpc.Examples.MathClient", "Grpc.Examples.MathClient\Grpc.Examples.MathClient.csproj", "{61ECB8EE-0C96-4F8E-B187-8E4D227417C0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InteropClient", "InteropClient\InteropClient.csproj", "{C61154BA-DD4A-4838-8420-0162A28925E0}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Grpc.IntegrationTesting", "Grpc.IntegrationTesting\Grpc.IntegrationTesting.csproj", "{C61154BA-DD4A-4838-8420-0162A28925E0}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -45,6 +45,6 @@ Global {CCC4440E-49F7-4790-B0AF-FEABB0837AE7}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(MonoDevelopProperties) = preSolution - StartupItem = InteropClient\InteropClient.csproj + StartupItem = Grpc.Examples\Grpc.Examples.csproj EndGlobalSection EndGlobal diff --git a/src/csharp/README.md b/src/csharp/README.md index 9967af22b3bc4dbdeff853dc8b7297a11bd33c95..55739a1f83c7e2f7dcf72682241b4f96420701b4 100755 --- a/src/csharp/README.md +++ b/src/csharp/README.md @@ -59,7 +59,7 @@ mono ~/Downloads/NuGet.exe restore Grpc.sln one will make them pass. ``` -nunit-console GrpcCoreTests.dll +nunit-console Grpc.Core.Tests.dll ``` CONTENTS @@ -67,11 +67,11 @@ CONTENTS - ext: The extension library that wraps C API to be more digestible by C#. -- GrpcApi: - API examples for math.proto and testservice.proto -- GrpcCore: +- Grpc.Core: The main gRPC C# library. -- InteropClient: - Client for interop testing. -- MathClient: +- Grpc.Examples: + API examples for math.proto +- Grpc.Examples.MathClient: An example client that sends some requests to math server. +- Grpc.IntegrationTesting: + Client for cross-language gRPC implementation testing (interop testing).