withSIX.Play.Core.Games.Legacy.Mods.AdvancedCollection.GetRepo C# (CSharp) Method

GetRepo() protected static method

protected static GetRepo ( IContentManager manager, Uri uri ) : Task
manager IContentManager
uri System.Uri
return Task
        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);
            }
            }
        }