Show / Hide Table of Contents

Class AppCenterCrashSource

Processes JSON data from AppCenter into a crash instance.

Inheritance
System.Object
AppCenterCrashSource
Implements
ICrashSource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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, ITitleMappingDal, ILogger<AppCenterCrashSource>)

Initializes a new instance of the AppCenterCrashSource class.

Declaration
public AppCenterCrashSource(Uri crashUri, IAzureBlobProvider azureBlobProvider, ITitleMappingDal titleMappingDal, ILogger<AppCenterCrashSource> logger)
Parameters
Type Name Description
System.Uri crashUri

The URI to the JSON file received from AppCenter.

IAzureBlobProvider azureBlobProvider

The azure blob provider to use.

ITitleMappingDal titleMappingDal

The title name mapping DAL to use.

ILogger<AppCenterCrashSource> logger

Methods

View Source

CreateAttachmentsFromJSONAsync(IAzureBlobProvider, Uri)

Creates the AppCenter analysis attachments from a JSON stream.

Declaration
public static async Task<(AppCenterModel Analysis, AttachmentContainer Attachments)> CreateAttachmentsFromJSONAsync(IAzureBlobProvider azureBlobProvider, Uri uri)
Parameters
Type Name Description
IAzureBlobProvider azureBlobProvider

The azure blob provider to use.

System.Uri uri

The AppCenter Analysis JSON URI.

Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<AppCenterModel, AttachmentContainer>>

The parsed AppCenter analysis and an attachment container.

View Source

LoadCrashAsync()

Loads the specific crash instance from the source.

Declaration
public async Task<CrashInstance> LoadCrashAsync()
Returns
Type Description
System.Threading.Tasks.Task<CrashInstance>

A crash instance.

Implements

ICrashSource
  • View Source
In This Article
Back to top Generated by DocFX