public RemoveFirstEntryRequestNavigation( IRequestNavigation innerRequestNavigation, IScheduler dispatcherScheduler, Uri entryPointUri, PhoneApplicationFrame applicationFrame) { if (innerRequestNavigation == null) { throw new ArgumentNullException("innerRequestNavigation"); } if (dispatcherScheduler == null) { throw new ArgumentNullException("dispatcherScheduler"); } if (entryPointUri == null) { throw new ArgumentNullException("entryPointUri"); } if (applicationFrame == null) { throw new ArgumentNullException("applicationFrame"); } _innerRequestNavigation = innerRequestNavigation; _entryPointUri = entryPointUri; _applicationFrame = applicationFrame; _dispatcherScheduler = dispatcherScheduler; }
public RemoveFirstEntryRequestNavigation( IRequestNavigation innerRequestNavigation, IScheduler dispatcherScheduler, Uri entryPointUri, PhoneApplicationFrame applicationFrame) { if (innerRequestNavigation == null) throw new ArgumentNullException("innerRequestNavigation"); if (dispatcherScheduler == null) throw new ArgumentNullException("dispatcherScheduler"); if (entryPointUri == null) throw new ArgumentNullException("entryPointUri"); if (applicationFrame == null) throw new ArgumentNullException("applicationFrame"); _innerRequestNavigation = innerRequestNavigation; _entryPointUri = entryPointUri; _applicationFrame = applicationFrame; _dispatcherScheduler = dispatcherScheduler; }
/// <summary> /// Create a new instance of SettingsFlyoutNavigationRequest /// </summary> /// <param name="inner">The inner request navigation.</param> /// <param name="viewModelFactory">The factory used to create the view models</param> /// <param name="dispatcher">Dispatcher scheduler</param> public SettingsFlyoutNavigationRequest( IRequestNavigation inner, IViewModelFactory viewModelFactory, IScheduler dispatcher) { if (inner == null) { throw new ArgumentNullException("inner"); } if (viewModelFactory == null) { throw new ArgumentNullException("viewModelFactory"); } if (dispatcher == null) { throw new ArgumentNullException("dispatcher"); } _inner = inner; _viewModelFactory = viewModelFactory; _dispatcher = dispatcher; _definitions = new Dictionary <string, SettingsFlyoutDefinition>(); }
public ViewModelServices( IRuleProvider ruleProvider, IObservableRegistrationService observableRegistration, IValidator validator, ISchedulers schedulers, INavigationService navigationService, IRequestNavigation requestNavigation, IAsyncCommandBus commandBus, IAsyncQueryBus queryBus, ICommandEvents commandEvents, ICommandStateEvents commandStateEvents, IQueryStateEvents queryStateEvents) { if (ruleProvider == null) throw new ArgumentNullException("ruleProvider"); if (observableRegistration == null) throw new ArgumentNullException("observableRegistration"); if (validator == null) throw new ArgumentNullException("validator"); if (schedulers == null) throw new ArgumentNullException("schedulers"); if (navigationService == null) throw new ArgumentNullException("navigationService"); if (requestNavigation == null) throw new ArgumentNullException("requestNavigation"); if (commandBus == null) throw new ArgumentNullException("commandBus"); if (queryBus == null) throw new ArgumentNullException("queryBus"); if (commandEvents == null) throw new ArgumentNullException("commandEvents"); if (commandStateEvents == null) throw new ArgumentNullException("commandStateEvents"); if (queryStateEvents == null) throw new ArgumentNullException("queryStateEvents"); Schedulers = schedulers; Validator = validator; ObservableRegistration = observableRegistration; RuleProvider = ruleProvider; CommandStateEvents = commandStateEvents; QueryStateEvents = queryStateEvents; CommandEvents = commandEvents; QueryBus = queryBus; CommandBus = commandBus; RequestNavigation = requestNavigation; NavigationService = navigationService; }
public static Task Navigate(this IRequestNavigation requestNavigation, CancellationToken ct, string viewName) { return(requestNavigation.Navigate(ct, viewName, Enumerable.Empty <KeyValuePair <string, string> >())); }
public static Task Navigate(this IRequestNavigation requestNavigation, CancellationToken ct, string viewName, IEnumerable <KeyValuePair <string, string> > parameters, object entity = null) { return(requestNavigation.Navigate(ct, new NavigationRequest(viewName, parameters.ToDictionary(kvp => kvp.Key, kvp => kvp.Value), entity))); }
public ViewModelServices( IRuleProvider ruleProvider, IObservableRegistrationService observableRegistration, IValidator validator, ISchedulers schedulers, INavigationService navigationService, IRequestNavigation requestNavigation, IAsyncCommandBus commandBus, IAsyncQueryBus queryBus, ICommandEvents commandEvents, ICommandStateEvents commandStateEvents, IQueryStateEvents queryStateEvents) { if (ruleProvider == null) { throw new ArgumentNullException("ruleProvider"); } if (observableRegistration == null) { throw new ArgumentNullException("observableRegistration"); } if (validator == null) { throw new ArgumentNullException("validator"); } if (schedulers == null) { throw new ArgumentNullException("schedulers"); } if (navigationService == null) { throw new ArgumentNullException("navigationService"); } if (requestNavigation == null) { throw new ArgumentNullException("requestNavigation"); } if (commandBus == null) { throw new ArgumentNullException("commandBus"); } if (queryBus == null) { throw new ArgumentNullException("queryBus"); } if (commandEvents == null) { throw new ArgumentNullException("commandEvents"); } if (commandStateEvents == null) { throw new ArgumentNullException("commandStateEvents"); } if (queryStateEvents == null) { throw new ArgumentNullException("queryStateEvents"); } Schedulers = schedulers; Validator = validator; ObservableRegistration = observableRegistration; RuleProvider = ruleProvider; CommandStateEvents = commandStateEvents; QueryStateEvents = queryStateEvents; CommandEvents = commandEvents; QueryBus = queryBus; CommandBus = commandBus; RequestNavigation = requestNavigation; NavigationService = navigationService; }