private MessageProviderFactory()
        {
            LogManager logManager = LogManager.Instance;

            logger = new Logger("NFY", "notification");
            logManager.AddLogger(logger);
        }
Example #2
0
        static void Main(string[] args)
        {
            //Load dependency resolver
            using (var container = new DependencyResolver())
            {
                //Set logger
                LogManager.AddLogger(container.Resolve <ILogger>());

                using (new MyLifeTimeScope())
                {
                    //Comment following line to stop clearing cache for every new run
                    container.ClearInMemoryCache();

                    DoMockRunAsync(container).Wait();
                }
            }

            Console.WriteLine("Press enter key to exit. \n");
            Console.Read();
        }
Example #3
0
        private static void Main(string[] args)
        {
            LogManager.LogCallerType = true;
            LogManager.AddLogger(new ConsoleLogger());

            var projectLoader = new GameProjectLoader();
            var project       = projectLoader.LoadFromArguments(args);

            using (var ecsInstance = new EcsInstance(project))
            {
                ecsInstance.GetApi().Events.Global.LogListenerRegistration = true;
                ecsInstance.GetApi().Events.Global.StartListening(
                    EventNames.Initialization.OnInit,
                    (sender, eventArgs) =>
                {
                    var gameScene = new TransformScene();
                    ecsInstance.SetRootEntity(gameScene);
                }
                    );
                ecsInstance.InitializeEventListeners();

                ecsInstance.Run();
            }
        }