public AssemblyImageViewModel( [NotNull] IAssemblyImage image, [NotNull] TypeDefinitionViewModel.Factory typeDefinitionFactory) { this.image = image ?? throw new ArgumentNullException(nameof(image)); this.typeDefinitionFactory = typeDefinitionFactory ?? throw new ArgumentNullException(nameof(typeDefinitionFactory)); Task.Run(this.Init); }
public AssemblyImageViewModel( [NotNull] IAssemblyImage image, [NotNull] TypeDefinitionViewModel.Factory typeDefinitionFactory) { this.image = image ?? throw new ArgumentNullException(nameof(image)); this.typeDefinitionFactory = typeDefinitionFactory ?? throw new ArgumentNullException(nameof(typeDefinitionFactory)); this.types = new List <TypeDefinitionViewModel>(); Dispatcher.UIThread.InvokeAsync(this.Init); }