private static void Main(string[] args) { Arguments = args; var appContainer = new AppContainer <Startup, EntryPoint>(); appContainer.Initialize(); appContainer.Run(); }
public Sightings() { InitializeComponent(); AppContainer.Initialize(); _iguanaApiService = AppContainer.Resolve <IIguanaApiService>(); var sightingsViewModel = AppContainer.Resolve <SightingsViewModel>(); this.BindingContext = sightingsViewModel; }
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; } }
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(); }