|
|
@ -1,4 +1,6 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
using System.Linq;
|
|
|
|
using ZeroLevel;
|
|
|
|
using ZeroLevel;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ConfigurationTests
|
|
|
|
namespace ConfigurationTests
|
|
|
@ -8,6 +10,20 @@ namespace ConfigurationTests
|
|
|
|
|
|
|
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
static void Main(string[] args)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
var list = new List<int>();
|
|
|
|
|
|
|
|
for (int i = 0; i < 100; i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
list.Add(i);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var collection = list.Chunkify(6).ToList();
|
|
|
|
|
|
|
|
foreach (var t in collection)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Console.WriteLine(string.Join("; ", t.Select(n => n.ToString("D2"))));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Console.ReadKey();
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var config = Configuration.ReadFromIniFile("config.ini").Bind<AppConfig>();
|
|
|
|
var config = Configuration.ReadFromIniFile("config.ini").Bind<AppConfig>();
|
|
|
|
Console.WriteLine(config.Url);
|
|
|
|
Console.WriteLine(config.Url);
|
|
|
|
Console.WriteLine(config.BatchSize);
|
|
|
|
Console.WriteLine(config.BatchSize);
|
|
|
|