public override void RegisterTypes(IContainerRegistry containerRegistry) { // Register for container containerRegistry.RegisterInstance(FileTransferService.GetDownloaderManager("net-disk")); // Register for region _regionManager.RegisterViewWithRegion(RegionNames.MainTabRegion, typeof(FileBrowserComponent)); _regionManager.RegisterViewWithRegion(RegionNames.MainTabRegion, typeof(TransportationComponent)); _regionManager.RegisterViewWithRegion(RegionNames.SettingsTabRegion, typeof(TaskSettingsTabItem)); }
// ------------------------------------------------------------------------------------- public static IReadOnlyList <TransferItem> GetDownloadItems(this IAcceleriderUser @this) { Guards.ThrowIfNull(@this); return(FileTransferService .GetDownloaderManager() .Transporters .OfType <TransferItem>() .ToList() .AsReadOnly()); }
public override void RegisterTypes(IContainerRegistry containerRegistry) { // Register for container containerRegistry.RegisterInstance(FileTransferService.GetDownloaderManager("any-drive")); AcceleriderUserExtensions.Initialize(containerRegistry.GetContainer()); // Register for region _regionManager.RegisterViewWithRegion(RegionNames.MainTabRegion, typeof(FileBrowserComponent)); _regionManager.RegisterViewWithRegion(RegionNames.MainTabRegion, typeof(TransportationComponent)); _regionManager.RegisterViewWithRegion(RegionNames.SettingsTabRegion, typeof(TaskSettingsTabItem)); _regionManager.RegisterViewWithRegion(Constants.NetDiskAuthenticationViewRegion, typeof(NetDiskList)); _regionManager.RegisterViewWithRegion(Constants.NetDiskAuthenticationViewRegion, typeof(BaiduCloud)); _regionManager.RegisterViewWithRegion(Constants.NetDiskAuthenticationViewRegion, typeof(OneDrive)); _regionManager.RegisterViewWithRegion(Constants.NetDiskAuthenticationViewRegion, typeof(SixCloud)); }