Skip to content

Commit d8b6a9f

Browse files
committed
Add missing usings to fix issues when ImplicitUsings not set
1 parent 147d8be commit d8b6a9f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/GrpcToRestGenerator/GrpcMockServer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
using GrpcTestKit.TestConnectors;
2121
using System;
2222
using System.Net;
23+
using System.Threading;
24+
using System.Linq;
2325

2426
/*MockServerNamespace*/
2527

src/GrpcToRestGenerator/StubHelperBuilder.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ public string Build(IReadOnlyList<INamedTypeSymbol> proxyBaseClasses)
2020
{
2121
{
2222
{
23+
_stubBuilder.AppendLine("using System;");
2324
_stubBuilder.AppendLine("using GrpcTestKit.TestConnectors;");
25+
_stubBuilder.AppendLine("using System.Threading;");
26+
_stubBuilder.AppendLine("using System.Threading.Tasks;");
27+
_stubBuilder.AppendLine("using System.Linq;");
28+
_stubBuilder.AppendLine("using System.Collections.Generic;");
2429
if (string.IsNullOrWhiteSpace(_helperNamespace) == false)
2530
{
2631
_stubBuilder.AppendLine($"namespace {_helperNamespace};");

0 commit comments

Comments
 (0)