Show / Hide Table of Contents

Class AzureTableStorageServiceFactory

The IStorageServiceFactory implementation for Azure Table Storage.

Inheritance
System.Object
AzureTableStorageServiceFactory
Implements
IStorageServiceFactory
Namespace: DNVGL.One.Compute.StorageLibrary.Azure.Factory
Assembly: DNVGL.One.Compute.StorageLibrary.Azure.dll
Syntax
public class AzureTableStorageServiceFactory : object, IStorageServiceFactory

Constructors

View Source

AzureTableStorageServiceFactory(IStorageConnectionStringResolver, ILogger)

Initializes a new instance of the AzureTableStorageServiceFactory class.

Declaration
public AzureTableStorageServiceFactory(IStorageConnectionStringResolver storageConnectionStringResolver, ILogger logger)
Parameters
Type Name Description
IStorageConnectionStringResolver storageConnectionStringResolver

The storage connection string resolver.

ILogger logger

The logger.

View Source

AzureTableStorageServiceFactory(String, ILogger)

Initializes a new instance of the AzureTableStorageServiceFactory class.

Declaration
public AzureTableStorageServiceFactory(string storageConnectionString, ILogger logger)
Parameters
Type Name Description
System.String storageConnectionString

The storage connection string.

ILogger logger

The logger.

Properties

View Source

Logger

Gets the logger.

Declaration
public ILogger Logger { get; }
Property Value
Type Description
ILogger

The logger.

Methods

View Source

CreateDynamicWorkMonitorFactory(String)

Create the dynamic work monitor factory.

Declaration
public IDynamicWorkMonitorFactory CreateDynamicWorkMonitorFactory(string messageReceiverStorageConnectionString)
Parameters
Type Name Description
System.String messageReceiverStorageConnectionString

Storage connection string.

Returns
Type Description
IDynamicWorkMonitorFactory

The dynamic work monitor factory.

View Source

CreateJobPropertiesService(String, String)

Will return an instance of the job properties storage service IJobPropertiesService based upon the supplied connection string.

Declaration
public IJobPropertiesService CreateJobPropertiesService(string globalStorageConnectionString, string localStorageConnectionString)
Parameters
Type Name Description
System.String globalStorageConnectionString

The global storage connection string.

System.String localStorageConnectionString

The local storage connection string.

Returns
Type Description
IJobPropertiesService

A job properties storage service instance.

View Source

CreateJobStatusService(String, String)

Will return an instance of the job status storage service based upon the supplied connection string.

Declaration
public IJobStatusService CreateJobStatusService(string jobStatusStorageConnectionString, string workItemStatusStorageConnectionString = null)
Parameters
Type Name Description
System.String jobStatusStorageConnectionString

The connection string to the job status storage.

System.String workItemStatusStorageConnectionString

The connection string to the work item status storage.

Returns
Type Description
IJobStatusService

A job status storage service instance.

Remarks

If workItemStatusStorageConnectionString is null or empty, the jobStatusStorageConnectionString will be used to connect to work item storage.

View Source

CreateMessageQueue<T>(String, Boolean, Boolean)

Creates a message queue with the specified name.

Declaration
public IMessageQueue<T> CreateMessageQueue<T>(string messageQueue, bool createIfNotExists = true, bool willReceiveMessages = true)
    where T : class
Parameters
Type Name Description
System.String messageQueue

The message queue name.

System.Boolean createIfNotExists

Creates message queue if it doesn't exist.

System.Boolean willReceiveMessages

True if the queue will be used to receive messages.

Returns
Type Description
IMessageQueue<T>

The message queue.

Type Parameters
Name Description
T

Type of message.

View Source

CreateMessageSenderService(String)

Will return an instance of the message sender service IMessageSender<T> based upon the supplied connection string.

Declaration
public IMessageSender<ScheduleWorkMessage> CreateMessageSenderService(string messageSenderStorageConnectionString)
Parameters
Type Name Description
System.String messageSenderStorageConnectionString

The connection string to the storage data source.

Returns
Type Description
IMessageSender<ScheduleWorkMessage>

A message sender service instance.

View Source

CreateResultStorageService(String)

Will return an instance of the result storage service IFlowModelStorageService<T> based upon the supplied connection string.

Declaration
public IFlowModelStorageService<Result> CreateResultStorageService(string resultStorageConnectionString)
Parameters
Type Name Description
System.String resultStorageConnectionString

The connection string to the result storage.

Returns
Type Description
IFlowModelStorageService<Result>

A results storage service instance.

View Source

CreateWorkItemStatusService(String)

Will return an instance of the work item status storage service IWorkItemStatusService based upon the supplied connection string.

Declaration
public IWorkItemStatusService CreateWorkItemStatusService(string workItemStatusConnectionString)
Parameters
Type Name Description
System.String workItemStatusConnectionString

The connection string to the work item status storage.

Returns
Type Description
IWorkItemStatusService

A work item status storage service instance.

View Source

CreateWorkItemStorageService(String)

Will return an instance of the work item storage service IFlowModelStorageService<T> based upon the supplied connection string.

Declaration
public IFlowModelStorageService<WorkItem> CreateWorkItemStorageService(string workItemStorageConnectionString)
Parameters
Type Name Description
System.String workItemStorageConnectionString

The connection string to the work item storage.

Returns
Type Description
IFlowModelStorageService<WorkItem>

A work item storage service instance.

View Source

DeleteMessageQueue(String)

Delete the message queue.

Declaration
public void DeleteMessageQueue(string messageQueue)
Parameters
Type Name Description
System.String messageQueue

Message queue name.

View Source

GetFileTransferService(WorkUnit)

Declaration
public IFileTransferService GetFileTransferService(WorkUnit _)
Parameters
Type Name Description
WorkUnit _
Returns
Type Description
IFileTransferService

Implements

IStorageServiceFactory

See Also

IStorageServiceFactory
  • View Source
In This Article
Back to top Copyright © DNV AS. All rights reserved.