AvalonStudio.Extensibility.Git.Git.ClonePublicHttpSubmodule C# (CSharp) Метод

ClonePublicHttpSubmodule() публичный статический Метод

public static ClonePublicHttpSubmodule ( IConsole console, string sourceurl, string workingPath ) : System.Threading.Tasks.Task
console IConsole
sourceurl string
workingPath string
Результат System.Threading.Tasks.Task
		public static async Task ClonePublicHttpSubmodule(IConsole console, string sourceurl, string workingPath)
		{
			TransferProgressHandler transferHandler = e =>
			{
				console.OverWrite(
					$"Bytes: {ByteSizeHelper.ToString(e.ReceivedBytes)}, Objects: {e.ReceivedObjects}/{e.TotalObjects}, Indexed: {e.IndexedObjects}");
				return true;
			};

			CheckoutProgressHandler checkoutHandler =
				(path, steps, totalSteps) => { console.OverWrite($"Checkout: {steps}/{totalSteps}"); };

			await
				Task.Factory.StartNew(
					() =>
					{
						Repository.Clone(sourceurl, workingPath,
							new CloneOptions {OnTransferProgress = transferHandler, OnCheckoutProgress = checkoutHandler});
					});
		}
	}