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> (); } }
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> (); } }