private void Initialize() { _server = _fluentSocketFactory.CreateServer(_option.Setting); var handler = _serviceProvider.CreateInstance <ServerRequestMessageHandler>(); _server.RegisterRequestHandler(100, handler); var performanceServiceSetting = new PerformanceServiceSetting { AutoLogging = false, StatIntervalSeconds = 1, PerformanceInfoHandler = x => { _logger.LogInformation("{0}, {1}, totalCount: {2}, throughput: {3}, averageThrughput: {4}, rt: {5:F3}ms, averageRT: {6:F3}ms", _performanceService.Name, _performanceKey, x.TotalCount, x.Throughput, x.AverageThroughput, x.RT, x.AverageRT); } }; _performanceService.Initialize(_performanceKey, performanceServiceSetting); }