public X42ClientFeature( MasterNodeBase network, ILoggerFactory loggerFactory, X42ClientSettings x42ClientSettings, IServerStats nodeStats, IX42ServerLifetime 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, MasterNodeBase network) { X42ClientSettings.BuildDefaultConfigurationFile(builder, network); }
/// <summary> /// Prints command-line help. /// </summary> /// <param name="masterNodeBase">The masternode to extract values from.</param> public static void PrintHelp(MasterNodeBase masterNodeBase) { X42ClientSettings.PrintHelp(masterNodeBase); }