Beispiel #1
0
		public MainViewModel (IDataClient dataClient, IAppConfig appConfig)
		{
			_dataClient = dataClient.ThrowIfNull ("dataClient");
			_appConfig = appConfig.ThrowIfNull ("appConfig");

			using (var scope = AppContainer.Container.BeginLifetimeScope ()) {
				_sessionsViewModel = AppContainer.Container.Resolve<SessionsViewModel> ();
				_speakersViewModel = AppContainer.Container.Resolve<SpeakersViewModel> ();
				_tracksVieModel = AppContainer.Container.Resolve<TracksViewModel> ();
			}
		}
Beispiel #2
0
        public MainViewModel(IDataClient dataClient, IAppConfig appConfig)
        {
            _dataClient = dataClient.ThrowIfNull("dataClient");
            _appConfig  = appConfig.ThrowIfNull("appConfig");

            using (var scope = AppContainer.Container.BeginLifetimeScope()) {
                _sessionsViewModel = AppContainer.Container.Resolve <SessionsViewModel> ();
                _speakersViewModel = AppContainer.Container.Resolve <SpeakersViewModel> ();
                _tracksVieModel    = AppContainer.Container.Resolve <TracksViewModel> ();
            }
        }