public EncodedLocation(ILocationResolver resolver, object location) { if (resolver == null && !(location is LocationInfo)) { throw new ArgumentNullException(nameof(resolver)); } Resolver = resolver; Location = location; }
public EncodedLocation(ILocationResolver resolver, object location) { if (resolver == null && !(location is LocationInfo)) { throw new ArgumentNullException(nameof(resolver)); } for (var r = resolver; r != null; r = r.GetAlternateResolver()) { resolver = r; } Debug.Assert(resolver != null); Resolver = resolver; Location = location; }
public DefaultTranslationErrorHandler(ILocationResolver locationResolver) { this.locationResolver = locationResolver; }
public EncodedLocation(ILocationResolver resolver, object location) { Resolver = resolver; Location = location; }
public ForecastCollectionViewModel(IEnumerable <IForecastDownloader> forecastDownloaders, ILocationResolver locationResolver) { StartForecastDownloads = new RelayCommand(() => InitializeForecastsDownloads()); this.forecastDownloaders = forecastDownloaders; this.locationResolver = locationResolver; }