public MetaWeblogController(
     IWebHostEnvironment appEnv,
     IMetaWeblogRequestParser metaWeblogRequestParser,
     IMetaWeblogRequestProcessor metaWeblogProcessor,
     IMetaWeblogResultFormatter metaWeblogResultFormatter,
     IMetaWeblogSecurity metaWeblogSecurity,
     IMetaWeblogRequestValidator metaWebLogRequestValidator,
     ILogger <MetaWeblogController> logger,
     IOptions <ApiOptions> optionsAccessor = null)
 {
     HostingEnvironment = appEnv;
     RequestParser      = metaWeblogRequestParser;
     RequestProcessor   = metaWeblogProcessor;
     ResultFormatter    = metaWeblogResultFormatter;
     Security           = metaWeblogSecurity;
     RequestValidator   = metaWebLogRequestValidator;
     Log = logger;
     if (optionsAccessor != null)
     {
         ApiOptions = optionsAccessor.Value;
     }
     else
     {
         ApiOptions = new ApiOptions(); // just use the default options
     }
 }
Beispiel #2
0
 public FolderMetaweblogController(
     IHostingEnvironment appEnv,
     IMetaWeblogRequestParser metaWeblogRequestParser,
     IMetaWeblogRequestProcessor metaWeblogProcessor,
     IMetaWeblogResultFormatter metaWeblogResultFormatter,
     IMetaWeblogSecurity metaWeblogSecurity,
     IMetaWeblogRequestValidator metaWebLogRequestValidator,
     ILogger <MetaWeblogController> logger,
     IOptions <ApiOptions> optionsAccessor = null
     ) : base(appEnv, metaWeblogRequestParser, metaWeblogProcessor, metaWeblogResultFormatter, metaWeblogSecurity, metaWebLogRequestValidator, logger, optionsAccessor)
 {
 }