fix stylecop warnings

pull/2607/head
Jan Tattermusch 10 years ago
parent b146ef62c4
commit ae017092ad
  1. 1
      src/csharp/Grpc.Core/AsyncDuplexStreamingCall.cs
  2. 1
      src/csharp/Grpc.Core/Internal/ServerCallHandler.cs
  3. 1
      src/csharp/Grpc.Core/Metadata.cs
  4. 5
      src/csharp/Grpc.Core/ServerCallContext.cs
  5. 2
      src/csharp/Grpc.Core/VersionInfo.cs

@ -57,7 +57,6 @@ namespace Grpc.Core
this.disposeAction = disposeAction;
}
/// <summary>
/// Async stream to read streaming responses.
/// </summary>

@ -179,7 +179,6 @@ namespace Grpc.Core.Internal
var requestStream = new ServerRequestStream<TRequest, TResponse>(asyncCall);
var responseStream = new ServerResponseStream<TRequest, TResponse>(asyncCall);
Status status;
var context = HandlerUtils.NewContext(newRpc);
try

@ -225,7 +225,6 @@ namespace Grpc.Core
{
return string.Format("[Entry: key={0}, value={1}]", Key, Value);
}
}
}
}

@ -45,16 +45,14 @@ namespace Grpc.Core
{
// TODO(jtattermusch): expose method to send initial metadata back to client
// TODO(jtattermusch): allow setting status and trailing metadata to send after handler completes.
private readonly string method;
private readonly string host;
private readonly DateTime deadline;
private readonly Metadata requestHeaders;
private readonly CancellationToken cancellationToken;
private readonly Metadata responseTrailers = new Metadata();
private Status status = Status.DefaultSuccess;
private readonly Metadata responseTrailers = new Metadata();
public ServerCallContext(string method, string host, DateTime deadline, Metadata requestHeaders, CancellationToken cancellationToken)
{
@ -127,6 +125,7 @@ namespace Grpc.Core
{
return this.status;
}
set
{
status = value;

@ -11,5 +11,3 @@ namespace Grpc.Core
public const string CurrentVersion = "0.6.0";
}
}

Loading…
Cancel
Save