Ejemplo n.º 1
0
 public SwaggerDiffController(ILogger <SwaggerDiffController> logger, IInitializationService initializationService, IClientRequestService clientRequestService, ICompareService compareService, IDocumentationStoreService documentationStoreService)
 {
     _logger = logger;
     _initializationService     = initializationService;
     _clientRequestService      = clientRequestService;
     _compareService            = compareService;
     _documentationStoreService = documentationStoreService;
 }
Ejemplo n.º 2
0
        // Constructor
        public InitializationService(IClientRequestService clientRequestService, IDocumentationStoreService documentationStoreService, ILogger <InitializationService> logger)
        {
            // Init Services
            _logger = logger;
            _clientRequestService      = clientRequestService;
            _documentationStoreService = documentationStoreService;

            // Get list of web-service names from env variable (service names must be unique)
            WebServiceNames = new HashSet <string>(Environment.GetEnvironmentVariable("SWAGGER_DIFF_SERVICENAMES").Split(","));
        }