Esempio n. 1
0
        public AspNetHttp(IConfigurationManager configurationManager, ILogger logger, IContainer container)
        {
            _logger    = logger;
            _container = container;

            const int defaultPort = 0;

            //const int defaultRequestTimeout = 500;

            port = configurationManager.Get("Port", defaultPort);
            //requestTimeout = configurationManager.Get("RequestTimeout", defaultRequestTimeout);
        }
Esempio n. 2
0
        public Startup(IContainer container, StartupOptions startupOptions)
        {
            _container      = container;
            _startupOptions = startupOptions;
            _logger         = _container.GetInstance <ILogger>();

            _configurationManager = _container.GetInstance <IConfigurationManager>();
            _startupOptions.IdentityServerOptions.Url = _configurationManager.Get <string>("IdentityServerAddress", null);

            var entryAssembly = Assembly.GetEntryAssembly() ?? throw new InvalidOperationException("Unable to get entry assembly");

            _entryAssemblyName = entryAssembly.GetName();
        }