LogStreamer.Configuration.ApplyDefaults C# (CSharp) Method

ApplyDefaults() public method

public ApplyDefaults ( ) : void
return void
        public void ApplyDefaults()
        {
            this.ReconnectMinimumWaitSeconds = LogStreamerConfiguration.DefaultReconnectMinimumWaitSeconds;
            this.ReconnectMaximumWaitSeconds = LogStreamerConfiguration.DefaultReconnectMaximumWaitSeconds;
            ApplyDefaultsFromHost();
        }

Usage Example

コード例 #1
0
        private static Response HandleGETSampleConfigFile()
        {
            var cfg = new Configuration();
            cfg.ApplyDefaults();

            int prio;
            string table;

            var r = new Random();
            if (r.Next(100) < 50) {
                prio = r.Next(2);
                table = "Invoice";
                cfg.AddToUpstreamWhitelist(table, prio);
                cfg.AddToDownstreamWhitelist(table, prio);
            }
            if (r.Next(100) < 50) {
                prio = r.Next(2);
                table = "InvoiceRow";
                cfg.AddToUpstreamWhitelist(table, prio);
                cfg.AddToDownstreamWhitelist(table, prio);
            }

            return cfg;
        }
All Usage Examples Of LogStreamer.Configuration::ApplyDefaults