/ReactiveExtensionExamples/App.cs
https://github.com/TheEightBot/Reactive-Examples · C# · 36 lines · 29 code · 5 blank · 2 comment · 0 complexity · 3f12dce1d40d8e80b4d651ab302efc3e MD5 · raw file
- using System;
- using Refit;
- using Splat;
- using Xamarin.Forms;
- namespace ReactiveExtensionExamples
- {
- public class App : Application
- {
- public App ()
- {
- Values.Styles.Initialize ();
- MainPage = new UserInterface.Pages.NavigationContainerPage ();
- }
- protected override void OnStart ()
- {
- Locator
- .CurrentMutable
- .RegisterLazySingleton(
- () => RestService.For<Services.Api.IDuckDuckGoApi>("https://api.duckduckgo.com"),
- typeof(Services.Api.IDuckDuckGoApi));
- }
- protected override void OnSleep ()
- {
- // Handle when your app sleeps
- }
- protected override void OnResume ()
- {
- // Handle when your app resumes
- }
- }
- }