public async Task <SymbolFile> GetMobileSymbolicationMetadataForAppVersionAsync(string applicationId, string packageName, MobileOsTypes os, string versionCode, string versionName, CancellationToken cancellationToken = default) { var response = await GetMobileSymbolicationUrl() .AppendPathSegment(applicationId) .AppendPathSegment(packageName) .AppendPathSegment(s_mobileOsTypesConverter.ConvertToString(os)) .AppendPathSegment(versionCode) .AppendPathSegment(versionName) .GetJsonWithErrorCheckingAsync <SymbolFile>(cancellationToken) .ConfigureAwait(false); return(response); }
public async Task <bool> ChangePinMobileSymbolicationFileAsync(string applicationId, string packageName, MobileOsTypes os, string versionCode, string versionName, SymbolFilePinning body, CancellationToken cancellationToken = default) { var response = await GetMobileSymbolicationUrl() .AppendPathSegment(applicationId) .AppendPathSegment(packageName) .AppendPathSegment(s_mobileOsTypesConverter.ConvertToString(os)) .AppendPathSegment(versionCode) .AppendPathSegment(versionName) .AppendPathSegment("pinning") .PutJsonAsync(body, cancellationToken) .ConfigureAwait(false); return(response.IsSuccessStatusCode); }
public async Task <bool> PutMobileSymbolicationFileAsync(string applicationId, string packageName, MobileOsTypes os, string versionCode, string versionName, byte[] body, string contentType = null, CancellationToken cancellationToken = default) { var response = await GetMobileSymbolicationUrl() .If(contentType != null, request => request.WithHeader("content-type", contentType)) .AppendPathSegment(applicationId) .AppendPathSegment(packageName) .AppendPathSegment(s_mobileOsTypesConverter.ConvertToString(os)) .AppendPathSegment(versionCode) .AppendPathSegment(versionName) .PutAsync(new ByteArrayContent(body), cancellationToken) .ConfigureAwait(false); return(response.IsSuccessStatusCode); }
public async Task <bool> DeleteMobileSymbolicationFileForAppVersionAsync(string applicationId, string packageName, MobileOsTypes os, string versionCode, string versionName, CancellationToken cancellationToken = default) { var response = await GetMobileSymbolicationUrl() .AppendPathSegment(applicationId) .AppendPathSegment(packageName) .AppendPathSegment(s_mobileOsTypesConverter.ConvertToString(os)) .AppendPathSegment(versionCode) .AppendPathSegment(versionName) .DeleteAsync(cancellationToken) .ConfigureAwait(false); return(response.IsSuccessStatusCode); }