Revenj.DatabasePersistence.Postgres.Setup.Setup C# (CSharp) Method

Setup() static private method

static private Setup ( ) : System
return System
        static Setup()
        {
            MinBatchSize = 1000;
            MaxObjectSize = 1024 * 1024;
            var mbs = ConfigurationManager.AppSettings["Database.MinBatchSize"];
            int n;
            if (!string.IsNullOrEmpty(mbs) && int.TryParse(mbs, out n))
                MinBatchSize = n;
            mbs = ConfigurationManager.AppSettings["Database.MaxObjectSize"];
            long m;
            if (!string.IsNullOrEmpty(mbs) && long.TryParse(mbs, out m))
                MaxObjectSize = m;
        }