Beispiel #1
0
        static void Main(string[] args)
        {
            var opt = new StarterOption
            {
                DisableAudit = false
            };

            using (var starter = Starter.Create <Runner>(opt))
            {
                starter.Container.AddFacility <LoggingFacility>(f => f.LogUsing <NLogFactory>().WithConfig("NLog.config"));

                starter.Run();
            }

            Console.WriteLine("ok");
        }
Beispiel #2
0
 public LunaCache(StarterOption starterOption)
 {
     _starterOption = starterOption;
     Caches         = new ConcurrentDictionary <string, object>();
 }