diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2015-03-12 14:04:36 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2015-03-12 14:04:36 -0700 |
commit | 286975fd2b277cdbafaaebf050e307f2634c9041 (patch) | |
tree | 92f67f902bb79907db61761c54a267fa78741093 /src/csharp/Grpc.IntegrationTesting/TestCredentials.cs | |
parent | 7459a063968f2d91ec873c56107ff57d8f592ead (diff) |
Started using immutable collections and other code cleanup
Diffstat (limited to 'src/csharp/Grpc.IntegrationTesting/TestCredentials.cs')
-rw-r--r-- | src/csharp/Grpc.IntegrationTesting/TestCredentials.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/csharp/Grpc.IntegrationTesting/TestCredentials.cs b/src/csharp/Grpc.IntegrationTesting/TestCredentials.cs index 10df704f1d..401c50b1ae 100644 --- a/src/csharp/Grpc.IntegrationTesting/TestCredentials.cs +++ b/src/csharp/Grpc.IntegrationTesting/TestCredentials.cs @@ -33,6 +33,7 @@ using System; using System.Collections.Generic; +using System.Collections.Immutable; using System.Diagnostics; using System.IO; using System.Text.RegularExpressions; @@ -77,7 +78,7 @@ namespace Grpc.IntegrationTesting var keyCertPair = new KeyCertificatePair( File.ReadAllText(ServerCertChainPath), File.ReadAllText(ServerPrivateKeyPath)); - return new SslServerCredentials(new List<KeyCertificatePair> { keyCertPair }); + return new SslServerCredentials(ImmutableList.Create(keyCertPair)); } } } |