Exemplo n.º 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public MainModel()
        {
            NetworkAnalyzer = new NetworkTrafficAnalyzer();
            var settings = _conf.Load <WebApiClientSettings>("ClientSettings");

            Client = new WebApiClient(settings);
        }
Exemplo n.º 2
0
        public ServerModel()
        {
            var settings = _conf.Load <WebApiServerAdminSettings>("AdminSettings");

            Server = new WebApiServerAdmin(settings);
        }
Exemplo n.º 3
0
        public void Initialize()
        {
            var settings = _conf.Load <WebApiServerSettings>("ServerSettings");

            Server = new WebApiServer(settings, new ConsoleLogger(LogLevel.Error).Log, new FileLogger("Server", LogLevel.Warn).Log, OnLogEvent);
        }