protected override void ConfigureContainer(ISimpleIoc container) { base.ConfigureContainer(container); container.Register<IEmployeeServiceClient, EmployeeServiceClient>(); // Registering view models container.Register<MainViewModel>(); }
private void SetupDependencies(ISimpleIoc simpleIoc) { simpleIoc.Register <INavigationService>(() => new AppNavigationService()); }
private void SetupDependencies(ISimpleIoc simpleIoc) { simpleIoc.Register <IReminderDatabase>(() => new ReminderDatabase()); simpleIoc.Register <IReminderRepository>(() => new ReminderRepository(simpleIoc.Get <IReminderDatabase>())); }
protected override void Setup(ISimpleIoc simpleIoc) { simpleIoc.Register <IDialogService, DialogService>(); base.Setup(simpleIoc); }
public void Initialize(ISimpleIoc container) { container.Register <ILocationService, LocationService>(); container.Register <ILocationServiceSettings, LocationServiceSettings>(); }
partial void RegisterWindowsPhone(ISimpleIoc container) { container.Register <VMCaptureImage>(); }
private void SetupDependencies(ISimpleIoc simpleIoc) { simpleIoc.Register <IUserDialog>(() => new UserDialog(), Reuse.Singleton); simpleIoc.Register <INativeHttpClientHandlerFactory>(() => new NativeHttpClientHandlerFactory(), Reuse.Singleton); }
private void SetupDependencies(ISimpleIoc simpleIoc) { simpleIoc.Register <IConnectivity>(() => Connectivity.Connectivity.Instance); simpleIoc.Register <ISecureStorage>(() => SecureStorage.SecureStorage.Instance); simpleIoc.Register <IPreferences>(() => Preferences.Preferences.Instance); }
public void Initialize(ISimpleIoc container) { container.Register <ICallout, Callout>(); }
private void SetupDependencies(ISimpleIoc simpleIoc) { simpleIoc.Register <IAppConfig>(() => new AppConfig.AppConfig(), Reuse.Singleton); }
public void Initialize(ISimpleIoc container) { container.Register<ICallout, Callout>(); }
private void SetupDependencies(ISimpleIoc simpleIoc) { simpleIoc.Register <IOperationFactory>(() => new OperationFactory(simpleIoc, new ApplicationErrorHandler())); simpleIoc.Register <ILoadMusicService>(() => new LoadMusicService(), Reuse.Singleton); }