Example #1
0
 public ConfigureAuthorizationOptions(
     RestApiExtendedOptions options,
     IWebHostEnvironment environment)
 {
     this.environment = environment;
     apiOptions       = options ?? throw new ArgumentNullException(nameof(options));
 }
Example #2
0
 public ConfigureSwaggerOptions(
     IApiVersionDescriptionProvider versionDescriptionProvider,
     RestApiExtendedOptions restApiOptions)
 {
     this.versionDescriptionProvider = versionDescriptionProvider ?? throw new ArgumentNullException(nameof(versionDescriptionProvider));
     this.restApiOptions             = restApiOptions ?? throw new ArgumentNullException(nameof(restApiOptions));
 }