Esempio n. 1
0
        public static void Main(string[] args)
        {
            var container = ContainerConfigurator.ConfigureContainer();

            try
            {
                container.Resolve <IVkAuthenticator>().Authenticate();

                new Service.Core.Service(container.Resolve <IExecutingRequestsCollection[]>(),
                                         container.Resolve <IUserRawInputProvider>(),
                                         container.Resolve <UserMessagePrintersCache>(),
                                         container.Resolve <IUserConsentProvider>())
                .StartAndWaitAsync()
                .GetAwaiter().GetResult();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Console.ReadLine();
            }
            finally
            {
                container.Dispose();
            }
        }
Esempio n. 2
0
        public void SetupContainer(Container container, ConfigSettings configSettings, string[] args)
        {
            CustomSettings = new settingsT();
            SwitchParser.Parse(args, CustomSettings);

            _configurator.ConfigureContainer(container, configSettings, CustomSettings);
        }