Class AppCenterCrashSource
Processes JSON data from AppCenter into a crash instance.
Implements
Inherited Members
Namespace: CrashCABN.CrashSources
Assembly: CrashCABN.CrashSources.AppCenter.dll
Syntax
public class AppCenterCrashSource : ICrashSource
Remarks
This class consolidates code from AppCenterService and AppCenterHelper.
Constructors
View SourceAppCenterCrashSource(Uri, IAzureBlobProvider, ILogger<AppCenterCrashSource>)
Processes JSON data from AppCenter into a crash instance.
Declaration
public AppCenterCrashSource(Uri crashUri, IAzureBlobProvider azureBlobProvider, ILogger<AppCenterCrashSource> logger)
Parameters
Type | Name | Description |
---|---|---|
Uri | crashUri | The URI to the JSON file received from AppCenter. |
IAzureBlobProvider | azureBlobProvider | The azure blob provider to use. |
ILogger<AppCenterCrashSource> | logger |
Remarks
This class consolidates code from AppCenterService and AppCenterHelper.
Methods
View SourceCreateAttachmentsFromJSONAsync(IAzureBlobProvider, Uri)
Creates the AppCenter analysis attachments from a JSON stream.
Declaration
public static Task<(AppCenterModel Analysis, AttachmentContainer Attachments)> CreateAttachmentsFromJSONAsync(IAzureBlobProvider azureBlobProvider, Uri uri)
Parameters
Type | Name | Description |
---|---|---|
IAzureBlobProvider | azureBlobProvider | The azure blob provider to use. |
Uri | uri | The AppCenter Analysis JSON URI. |
Returns
Type | Description |
---|---|
Task<(AppCenterModel Analysis, AttachmentContainer Attachments)> | The parsed AppCenter analysis and an attachment container. |
LoadCrashAsync(IReadOnlyCollection<AdditionalFileInfo>?)
Loads the specific crash instance from the source.
Declaration
public Task<CrashInstance?> LoadCrashAsync(IReadOnlyCollection<AdditionalFileInfo>? additionalFiles = null)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyCollection<AdditionalFileInfo> | additionalFiles |
Returns
Type | Description |
---|---|
Task<CrashInstance> | A crash instance, if it could be loaded. |