Esempio n. 1
0
 private Configuration()
 {
     Port    = 8080;
     Sizing  = SizingConf.DefineConf();
     Timing  = new TimingConf(4, 2, 100);
     Filters = Filters.None();
 }
Esempio n. 2
0
        private Configuration(HttpProperties properties)
            : this()
        {
            Port = int.Parse(properties.GetProperty("server.http.port", Port.ToString()));
            var processorPoolSize            = int.Parse(properties.GetProperty("server.processor.pool.size", Sizing.ProcessorPoolSize.ToString()));
            var dispatcherPoolSize           = int.Parse(properties.GetProperty("server.dispatcher.pool", Sizing.DispatcherPoolSize.ToString()));
            var maxBufferPoolSize            = int.Parse(properties.GetProperty("server.buffer.pool.size", Sizing.MaxBufferPoolSize.ToString()));
            var maxMessageSize               = int.Parse(properties.GetProperty("server.message.buffer.size", Sizing.MaxMessageSize.ToString()));
            var probeInterval                = long.Parse(properties.GetProperty("server.probe.interval", Timing.ProbeInterval.ToString()));
            var probeTimeout                 = long.Parse(properties.GetProperty("server.probe.timeout", Timing.ProbeInterval.ToString()));
            var requestMissingContentTimeout = long.Parse(properties.GetProperty("server.request.missing.content.timeout", Timing.RequestMissingContentTimeout.ToString()));

            Sizing = new SizingConf(processorPoolSize, dispatcherPoolSize, maxBufferPoolSize, maxMessageSize);
            Timing = new TimingConf(probeInterval, probeTimeout, requestMissingContentTimeout);
        }
Esempio n. 3
0
 public Configuration With(TimingConf timing)
 {
     Timing = timing;
     return(this);
 }