Esempio n. 1
0
        private static void Main(string[] args)
        {
            Arguments = args;

            var appContainer = new AppContainer <Startup, EntryPoint>();

            appContainer.Initialize();
            appContainer.Run();
        }
Esempio n. 2
0
        public Sightings()
        {
            InitializeComponent();

            AppContainer.Initialize();
            _iguanaApiService = AppContainer.Resolve <IIguanaApiService>();
            var sightingsViewModel = AppContainer.Resolve <SightingsViewModel>();

            this.BindingContext = sightingsViewModel;
        }
Esempio n. 3
0
        public App(IDataService dataService)
        {
            if (dataService == null)
            {
                throw new ArgumentNullException(nameof(dataService));
            }

            try
            {
                InitializeComponent();
                AppContainer.Initialize((container) => container.RegisterInstance <IDataService>(dataService));
                MainPage = new MainPage();
            }
            catch (Exception)
            {
                throw;
            }
        }
Esempio n. 4
0
        private static void Main(InvocationContext invocationContext, string[] args)
        {
            Arguments         = args;
            InvocationContext = invocationContext;

            LoadEnvironment();

            // var elib = new ELibApi();
            //
            // elib.Authorize(ELibCredentialsType.LogPassPair, "WGOS", "0puWGQunjNDNP3Xt").Wait();
            //
            //
            // Console.WriteLine(JsonConvert.SerializeObject(elib.GetWorkInfo(41448623).Result, Formatting.Indented));

            var appContainer = new AppContainer <Startup, EntryPoint>();

            appContainer.Initialize();
            appContainer.Run();
        }