Esempio n. 1
0
 /// <summary>Initializes a new instance of the <see cref="CSharpClientGenerator" /> class.</summary>
 /// <param name="document">The Swagger document.</param>
 /// <param name="settings">The settings.</param>
 /// <param name="resolver">The resolver.</param>
 /// <exception cref="ArgumentNullException"><paramref name="document" /> is <see langword="null" />.</exception>
 public CSharpClientGenerator(OpenApiDocument document, CSharpClientGeneratorSettings settings, CSharpTypeResolver resolver)
     : base(document, settings, resolver)
 {
     Settings  = settings;
     _document = document ?? throw new ArgumentNullException(nameof(document));
 }
Esempio n. 2
0
 /// <summary>Initializes a new instance of the <see cref="CSharpClientGenerator" /> class.</summary>
 /// <param name="document">The Swagger document.</param>
 /// <param name="settings">The settings.</param>
 /// <exception cref="ArgumentNullException"><paramref name="document" /> is <see langword="null" />.</exception>
 public CSharpClientGenerator(OpenApiDocument document, CSharpClientGeneratorSettings settings)
     : this(document, settings, CreateResolverWithExceptionSchema(settings.CSharpGeneratorSettings, document))
 {
 }