EnterpriseMigrationArchive() public static method

public static EnterpriseMigrationArchive ( string org, int id ) : Uri
org string
id int
return System.Uri
Ejemplo n.º 1
0
        public Task DeleteArchive(string org, int id)
        {
            Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));

            var endpoint = ApiUrls.EnterpriseMigrationArchive(org, id);

            return(ApiConnection.Delete(endpoint, new object(), AcceptHeaders.MigrationsApiPreview));
        }
Ejemplo n.º 2
0
        public async Task <byte[]> GetArchive(string org, int id)
        {
            Ensure.ArgumentNotNullOrEmptyString(org, nameof(org));

            var endpoint = ApiUrls.EnterpriseMigrationArchive(org, id);
            var response = await Connection.Get <byte[]>(endpoint, null, AcceptHeaders.MigrationsApiPreview).ConfigureAwait(false);

            return(response.Body);
        }