protected static Task<SixRepo> GetRepo(IContentManager manager, Uri uri) {
var repo = Repo.Create(uri.ProcessRepoUrl());
switch (repo.Type) {
case RepoType.SixSync: {
return manager.GetRepo(repo.Uri);
}
default: {
throw new NotSupportedException("The specified repo type is not supported: " + repo.Type + ", " + uri);
}
}
}