File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
GoLive.Generator.ApiClientGenerator.Tests.WebApi
GoLive.Generator.ApiClientGenerator Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 1
- // ReSharper disable All
2
- using System . Net . Http ;
3
- using System ;
4
- using System . Threading . Tasks ;
5
- using System . Net . Http . Json ;
6
- using System . Collections . Generic ;
7
- using System . Threading ;
8
- using System . Diagnostics . CodeAnalysis ;
9
- using System . Text . Json . Serialization . Metadata ;
10
- using Microsoft . Extensions . Primitives ;
11
1
using Microsoft . AspNetCore . Http ;
12
- using System . Text . Json . Serialization ;
13
- using System . Net ;
14
- using System . Net . Http . Headers ;
15
- using GoLive . Generator . ApiClientGenerator ;
2
+ using System ;
16
3
17
4
namespace GoLive . Generator . ApiClientGenerator . URLs ;
18
5
public class GeneratedURLs
Original file line number Diff line number Diff line change @@ -198,7 +198,8 @@ public static void Execute(
198
198
foreach ( var urlGenerationSetting in config . URLGeneration )
199
199
{
200
200
StringBuilder tempBuilder = new ( ) ;
201
- tempBuilder . Append ( namespaceBuilder ) ;
201
+ tempBuilder . AppendLine ( "using Microsoft.AspNetCore.Http;" ) ;
202
+ tempBuilder . AppendLine ( "using System;" ) ;
202
203
tempBuilder . AppendLine ( $ "namespace { urlGenerationSetting . Namespace } ;") ;
203
204
tempBuilder . AppendLine ( $ "public class { urlGenerationSetting . ClassName } {{") ;
204
205
tempBuilder . Append ( urlSourceBuilder ) ;
You can’t perform that action at this time.
0 commit comments