Class AppCenterCrashSource
Processes JSON data from AppCenter into a crash instance.
Inheritance
System.Object
AppCenterCrashSource
Implements
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 SourceAppCenterCrashSource(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 SourceCreateAttachmentsFromJSONAsync(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. |
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. |