/// <summary> /// Initializes a new instance of the <see cref="CloudPortEncodeCreateHandler"/> class. /// </summary> /// <param name="log">log.</param> /// <param name="eventPublisher">eventPublisher.</param> /// <param name="cloudPortService">cloudPortService.</param> public CloudPortEncodeCreateHandler( IObjectLogger <CloudPortEncodeCreateHandler> log, IEventGridPublisher eventPublisher, ICloudPortService cloudPortService) : base( log, eventPublisher, HandlerId, AcceptedEvents) { _cloudPortService = cloudPortService; }
/// <summary> /// Initializes a new instance of the <see cref="CloudPortStatusHandler"/> class. /// Gets a CloudPort complete EventGrid message and re publishes it for Requestor consumption. /// </summary> /// <param name="log">IObjectLogger logger.</param> /// <param name="eventGridPublisher">An EventGrid publisher to use to publish with.</param> /// <param name="cloudPortService">Gets the CloudPort encoder instance from the services container.</param> /// <param name="storageService">Storage service used for setting storage account references.</param> public CloudPortStatusHandler(IObjectLogger <CloudPortStatusHandler> log, IEventGridPublisher eventGridPublisher, ICloudPortService cloudPortService, IStorageService storageService) : base(log, eventGridPublisher, HandlerId, EventsToHandle) { _storageService = storageService; _cloudPortService = cloudPortService; }