Class WatsonToAzureIngestion
Coordinates retrieving files from Watson as needed and uploading or retrieving them directly from our Azure storage.
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.Ingestion
Assembly: CrashCABN.Ingestion.Watson.dll
Syntax
public class WatsonToAzureIngestion : WatsonIngestion, IEquatable<WatsonIngestion>, IEquatable<WatsonToAzureIngestion>
Constructors
View SourceWatsonToAzureIngestion(IWatsonClient, IAzureBlobProvider, IUploadDal, ILogger<WatsonToAzureIngestion>, IAlternateStorageConnection)
Coordinates retrieving files from Watson as needed and uploading or retrieving them directly from our Azure storage.
Declaration
public WatsonToAzureIngestion(IWatsonClient WatsonClient, IAzureBlobProvider AzureBlobProvider, IUploadDal UploadDal, ILogger<WatsonToAzureIngestion> Logger, IAlternateStorageConnection Storage)
Parameters
| Type | Name | Description |
|---|---|---|
| IWatsonClient | WatsonClient | |
| IAzureBlobProvider | AzureBlobProvider | |
| IUploadDal | UploadDal | |
| ILogger<WatsonToAzureIngestion> | Logger | |
| IAlternateStorageConnection | Storage |
Properties
View SourceAzureBlobProvider
Declaration
public IAzureBlobProvider AzureBlobProvider { get; set; }
Property Value
| Type | Description |
|---|---|
| IAzureBlobProvider |
Logger
Declaration
public ILogger<WatsonToAzureIngestion> Logger { get; set; }
Property Value
| Type | Description |
|---|---|
| ILogger<WatsonToAzureIngestion> |
Storage
Declaration
public IAlternateStorageConnection Storage { get; set; }
Property Value
| Type | Description |
|---|---|
| IAlternateStorageConnection |
UploadDal
Declaration
public IUploadDal UploadDal { get; set; }
Property Value
| Type | Description |
|---|---|
| IUploadDal |
Methods
View SourceCreateCrashUrl(IAlternateStorageConnection, String, String, Guid, String)
Declaration
public static Uri CreateCrashUrl(IAlternateStorageConnection storage, string titleName, string originFolder, Guid crashId, string ext)
Parameters
| Type | Name | Description |
|---|---|---|
| IAlternateStorageConnection | storage | |
| System.String | titleName | |
| System.String | originFolder | |
| System.Guid | crashId | |
| System.String | ext |
Returns
| Type | Description |
|---|---|
| System.Uri |
GetCrashFileStream(Uri, String)
Declaration
public async Task<Stream> GetCrashFileStream(Uri crashUri, string titleName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | crashUri | |
| System.String | titleName |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.IO.Stream> |
Implements
System.IEquatable<T>
System.IEquatable<T>