Skip to content

Commit

Permalink
Merge pull request grpc#968 from jtattermusch/csharp_refactoring
Browse files Browse the repository at this point in the history
C# refactoring and code cleanup
  • Loading branch information
murgatroid99 committed Mar 6, 2015
2 parents ee092fc + 13cd125 commit 4947638
Show file tree
Hide file tree
Showing 19 changed files with 1,137 additions and 696 deletions.
1 change: 1 addition & 0 deletions src/csharp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.userprefs
StyleCop.Cache
test-results
packages
Grpc.v12.suo
Expand Down
2 changes: 0 additions & 2 deletions src/csharp/Grpc.Core.Tests/PInvokeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ public void NewNativeCallbackBenchmark()
[Test]
public void NopPInvokeBenchmark()
{
CompletionCallbackDelegate handler = Handler;

BenchmarkUtil.RunBenchmark(
1000000, 100000000,
() => {
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Grpc.Core/ChannelArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ internal ChannelArgsSafeHandle ToNativeChannelArgs()
}
return nativeArgs;
}
catch (Exception e)
catch (Exception)
{
if (nativeArgs != null)
{
Expand Down
7 changes: 6 additions & 1 deletion src/csharp/Grpc.Core/Grpc.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
<Compile Include="Internal\SafeHandleZeroIsInvalid.cs" />
<Compile Include="Internal\Timespec.cs" />
<Compile Include="Internal\GrpcThreadPool.cs" />
<Compile Include="Internal\AsyncCall.cs" />
<Compile Include="Internal\ServerSafeHandle.cs" />
<Compile Include="Method.cs" />
<Compile Include="ServerCalls.cs" />
Expand All @@ -69,6 +68,12 @@
<Compile Include="Credentials.cs" />
<Compile Include="Internal\ChannelArgsSafeHandle.cs" />
<Compile Include="ChannelArgs.cs" />
<Compile Include="Internal\AsyncCompletion.cs" />
<Compile Include="Internal\AsyncCallBase.cs" />
<Compile Include="Internal\AsyncCallServer.cs" />
<Compile Include="OperationFailedException.cs" />
<Compile Include="Internal\AsyncCall.cs" />
<Compile Include="Utils\Preconditions.cs" />
</ItemGroup>
<Choose>
<!-- Under older versions of Monodevelop, Choose is not supported and is just
Expand Down
Loading

0 comments on commit 4947638

Please sign in to comment.