1- using System . IO . Compression ;
1+ using System . IO . Compression ;
22using Linq2GraphQL . Generator ;
33using Microsoft . AspNetCore . Components ;
44using Microsoft . AspNetCore . Components . Forms ;
@@ -134,7 +134,8 @@ private async Task GenerateClientFromSchema()
134134
135135 isLoading = true ;
136136 var generator = new ClientGenerator ( options . Namespace , options . ClientName , options . IncludeSubscriptions ,
137- options . EnumGeneratorStrategy , options . Nullable , options . IncludeDeprecated ) ;
137+ options . EnumGeneratorStrategy , options . Nullable , options . IncludeDeprecated ,
138+ agent : options . Agent , standalone : options . Standalone ) ;
138139 var entries = IsIntrospectionJson ( options . Schema )
139140 ? generator . Generate ( options . Schema )
140141 : generator . GenerateFromSdl ( options . Schema ) ;
@@ -158,7 +159,8 @@ private async Task GenerateClientAsync()
158159 {
159160 isLoading = true ;
160161 var generator = new ClientGenerator ( options . Namespace , options . ClientName , options . IncludeSubscriptions ,
161- options . EnumGeneratorStrategy , options . Nullable , options . IncludeDeprecated ) ;
162+ options . EnumGeneratorStrategy , options . Nullable , options . IncludeDeprecated ,
163+ agent : options . Agent , standalone : options . Standalone ) ;
162164 var entries = await generator . GenerateAsync ( new ( options . Url ) , options . Token ) ;
163165 await SaveEntriesAsync ( entries ) ;
164166 }
@@ -183,6 +185,8 @@ public class GenerateOptions
183185 public string Url { get ; set ; }
184186 public string Token { get ; set ; }
185187 public bool IncludeDeprecated { get ; set ; }
188+ public bool Standalone { get ; set ; }
189+ public bool Agent { get ; set ; }
186190 public EnumGeneratorStrategy EnumGeneratorStrategy { get ; set ; }
187191
188192 public string Schema { get ; set ; }
0 commit comments