/// <summary> /// Gets the application assemblies. /// </summary> protected override ICollection <Assembly> GetAssemblies() { if (_platformService == null) { return(base.GetAssemblies()); } return(_platformService.GetAssemblies()); }
protected virtual ICollection <Assembly> GetAssemblies() { if (_platformService == null) { return new[] { GetType().GetTypeInfo().Assembly, typeof(BootstrapperBase).GetTypeInfo().Assembly } } ; return(_platformService.GetAssemblies()); }
protected override void UpdateAssemblies(HashSet <Assembly> assemblies) { base.UpdateAssemblies(assemblies); TryLoadAssemblyByType("AttachedMembers", "MugenMvvmToolkit.Xamarin.Forms.Binding", assemblies); if (IsDesignMode) { TryLoadAssemblyByType("PlatformBootstrapperService", "MugenMvvmToolkit.Xamarin.Forms.Android", assemblies); TryLoadAssemblyByType("PlatformBootstrapperService", "MugenMvvmToolkit.Xamarin.Forms.iOS", assemblies); TryLoadAssemblyByType("PlatformBootstrapperService", "MugenMvvmToolkit.Xamarin.Forms.UWP", assemblies); TryLoadAssemblyByType("PlatformBootstrapperService", "MugenMvvmToolkit.Xamarin.Forms.WinPhone", assemblies); TryLoadAssemblyByType("PlatformBootstrapperService", "MugenMvvmToolkit.Xamarin.Forms.WinRT", assemblies); TryLoadAssemblyByType("MugenMvvmToolkit.Xamarin.Forms.WinRT.PlatformBootstrapperService, MugenMvvmToolkit.Xamarin.Forms.WinRT.Phone", assemblies); } if (Application.Current != null) { assemblies.Add(Application.Current.GetType().GetAssembly()); } if (_platformService != null) { assemblies.Add(_platformService.GetType().GetAssembly()); assemblies.AddRange(_platformService.GetAssemblies().Where(x => !x.IsDynamic)); } }
protected virtual ICollection <Assembly> GetAssemblies() { return(_platformService.GetAssemblies().Where(x => !x.IsDynamic).ToList()); }