Show / Hide Table of Contents

Class AppCenterCrashSource

Processes JSON data from AppCenter into a crash instance.

Inheritance
object
AppCenterCrashSource
Implements
ICrashSource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: CrashCABN.CrashSources
Assembly: CrashCABN.CrashSources.AppCenter.dll
Syntax
public class AppCenterCrashSource : ICrashSource
Remarks

This class consolidates code from AppCenterService and AppCenterHelper.

Constructors

View Source

AppCenterCrashSource(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 Source

CreateAttachmentsFromJSONAsync(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.

View Source

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.

Implements

ICrashSource
  • View Source
In this article
Back to top Generated by DocFX