public void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterSingleton <IDatabasePathProvider, DatabasePathProvider>(); containerRegistry.RegisterSingleton <IDeviceService, DeviceService>(); containerRegistry.RegisterSingleton <IMessage, MessageIOS>(); }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { //Instance and Singleton containerRegistry.RegisterSingleton <ICardList, CardList>(); }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { RegisterDependencies(containerRegistry); RegisterViews(containerRegistry); }
public void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterForNavigation <LoginView>(); containerRegistry.RegisterForNavigation <SignupView>(); }
public void RegisterTypes(IContainerRegistry containerRegistry) { }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterSingleton <ICleaner, GcCleaner>(); containerRegistry.RegisterSingleton <IViewProvider, ViewProvider>(); }
/// <summary> /// Used to register types with the container that will be used by your application. /// </summary> protected abstract void RegisterTypes(IContainerRegistry containerRegistry);
/// <inheritdoc/> public void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterSingleton <IMediationService, MediationService>(); }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterForNavigation <MainPage>(); containerRegistry.RegisterForNavigation <HomePage>(); containerRegistry.RegisterForNavigation <DataEntryPage>(); }
public void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterSingleton <IWebScrapeService, HtmlAgilityPackWebScrape>(); }
public void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.Register <IPeopleService, PeopleService>(); }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { RegisterViewsForNavigation(containerRegistry); RegisterServices(containerRegistry); containerRegistry.RegisterForNavigation <DataManagerPage, DataManagerPageViewModel>(); }
public static IContainerRegistry RegisterLogglyHttpLogger <TOptions>(this IContainerRegistry container) where TOptions : ILogglyOptions { container.RegisterSingleton <ILogglyOptions, TOptions>(); return(RegisterInternal <LogglyHttpLogger>(container)); }
public void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterForNavigation <ClipBoardWatcherView, ClipBoardWatcherViewViewModel>(); }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { }
public void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.Register <TimePickerView>(); }
public void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.Register <DisplayModel>(); containerRegistry.Register <DisplayViewModel>(); }
public static IContainer GetContainer(this IContainerRegistry containerRegistry) { return(((IContainerExtension <IContainer>)containerRegistry).Instance); }
public void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.Register <IStatusBarViewModel, StatusBarViewModel>(); containerRegistry.Register <IStatusBarView, StatusBarView>(); }
protected virtual void AddToContainer(IContainerRegistry containerRegistry, IConfiguration configuration) { }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterSingleton <IMessageService, MessageService>(); }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterSingleton <IApplicationCommands, ApplicationCommands>(); }
public void RegisterTypes(IContainerRegistry containerRegistry) { //containerRegistry.Register<MainWindowView>(); }
public void RegisterTypes(IContainerRegistry container) { container.GetContainer().RegisterType <IDeviceScreenSizeService, DeviceScreenSizeService>(); }
public void RegisterTypes(IContainerRegistry containerRegistry) { // Register any platform specific implementations }
public void RegisterTypes(IContainerRegistry containerRegistry) { ViewModelLocationProvider.Register <Views.Notes, ViewModels.NotesViewModel>(); containerRegistry.RegisterForNavigation <Views.Notes, ViewModels.NotesViewModel>(); }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterForNavigation <NavigationPage>(); containerRegistry.RegisterForNavigation <MainPage, MainPageViewModel>(); }
protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterSingleton <ISetting, SettingEntity>(); containerRegistry.RegisterDialog <Setting>(); containerRegistry.Register <IMainDomain, MainViewDomain>(); }
private void RegisterViews(IContainerRegistry containerRegistry) { containerRegistry.RegisterForNavigation <NavigationPage>(); NavigationMapper.Instance.Register(containerRegistry, Assembly.GetExecutingAssembly()); }
/// <summary> /// Registers an object for navigation with the ViewModel type to be used as the DataContext. /// </summary> /// <typeparam name="TView">The Type of object to register as the view</typeparam> /// <typeparam name="TViewModel">The ViewModel to use as the DataContext for the view</typeparam> /// <param name="containerRegistry"></param> /// <param name="name">The unique name to register with the view</param> public static void RegisterForNavigation <TView, TViewModel>(this IContainerRegistry containerRegistry, string name = null) { containerRegistry.RegisterForNavigationWithViewModel <TViewModel>(typeof(TView), name); }