public X42ClientFeature( ServerNodeBase network, ILoggerFactory loggerFactory, X42ClientSettings x42ClientSettings, IServerStats nodeStats, IxServerLifetime serverLifetime, IAsyncLoopFactory asyncLoopFactory) { this.serverLifetime = serverLifetime; this.asyncLoopFactory = asyncLoopFactory; this.x42ClientSettings = x42ClientSettings; logger = loggerFactory.CreateLogger(GetType().FullName); nodeStats.RegisterStats(this.AddComponentStats, StatsType.Component, 1000); }
/// <summary> /// Get the default configuration. /// </summary> /// <param name="builder">The string builder to add the settings to.</param> /// <param name="network">The network to base the defaults off.</param> public static void BuildDefaultConfigurationFile(StringBuilder builder, ServerNodeBase network) { X42ClientSettings.BuildDefaultConfigurationFile(builder, network); }
/// <summary> /// Prints command-line help. /// </summary> /// <param name="serverNodeBase">The servernode to extract values from.</param> public static void PrintHelp(ServerNodeBase serverNodeBase) { X42ClientSettings.PrintHelp(serverNodeBase); }