|
@@ -308,17 +308,17 @@ namespace qdr.fnd.core.pqueue
|
|
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
- private void ValidateItemId(string itemId)
|
|
|
|
|
|
|
+ protected void ValidateItemId(string itemId)
|
|
|
{
|
|
{
|
|
|
if (string.IsNullOrEmpty(itemId))
|
|
if (string.IsNullOrEmpty(itemId))
|
|
|
throw new ArgumentNullException(nameof(itemId));
|
|
throw new ArgumentNullException(nameof(itemId));
|
|
|
}
|
|
}
|
|
|
- private void ValidateEmitter(string emitter)
|
|
|
|
|
|
|
+ protected void ValidateEmitter(string emitter)
|
|
|
{
|
|
{
|
|
|
if (string.IsNullOrEmpty(emitter))
|
|
if (string.IsNullOrEmpty(emitter))
|
|
|
throw new ArgumentNullException(nameof(emitter));
|
|
throw new ArgumentNullException(nameof(emitter));
|
|
|
}
|
|
}
|
|
|
- private void ValidateItem(IPsQueueItemDescriptor item)
|
|
|
|
|
|
|
+ protected void ValidateItem(IPsQueueItemDescriptor item)
|
|
|
{
|
|
{
|
|
|
if (item is null)
|
|
if (item is null)
|
|
|
throw new ArgumentNullException(nameof(item));
|
|
throw new ArgumentNullException(nameof(item));
|
|
@@ -337,7 +337,7 @@ namespace qdr.fnd.core.pqueue
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private void SetItemStatusInternal(IPsQueueItem item, PsStatusEnum? newStatus, bool isTransient, string message)
|
|
|
|
|
|
|
+ protected void SetItemStatusInternal(IPsQueueItem item, PsStatusEnum? newStatus, bool isTransient, string message)
|
|
|
{
|
|
{
|
|
|
var oldStatus = item.Status;
|
|
var oldStatus = item.Status;
|
|
|
var oldIsTransient = item.IsStatusTransient;
|
|
var oldIsTransient = item.IsStatusTransient;
|
|
@@ -358,7 +358,7 @@ namespace qdr.fnd.core.pqueue
|
|
|
Log(LogSeverityEnum.Debug, $"{Name} - Item [{item.Id}] changed status '{oldStatus}[{oldIsTransient}]' to '{(newStatus ?? oldStatus)}[{isTransient}]'.");
|
|
Log(LogSeverityEnum.Debug, $"{Name} - Item [{item.Id}] changed status '{oldStatus}[{oldIsTransient}]' to '{(newStatus ?? oldStatus)}[{isTransient}]'.");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private IPsProcessProvider ResolveProvider(string providerClass, IEnumerable<ITypedArgument> arguments)
|
|
|
|
|
|
|
+ protected IPsProcessProvider ResolveProvider(string providerClass, IEnumerable<ITypedArgument> arguments)
|
|
|
{
|
|
{
|
|
|
if (string.IsNullOrEmpty(providerClass))
|
|
if (string.IsNullOrEmpty(providerClass))
|
|
|
throw new PSQueueValidationException(PSQueueValidationException.ErrorCodes.ProcessProviderRequired);
|
|
throw new PSQueueValidationException(PSQueueValidationException.ErrorCodes.ProcessProviderRequired);
|
|
@@ -374,7 +374,7 @@ namespace qdr.fnd.core.pqueue
|
|
|
return provider;
|
|
return provider;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private void EnsureItemStateExpired(IPsQueueItem item)
|
|
|
|
|
|
|
+ protected void EnsureItemStateExpired(IPsQueueItem item)
|
|
|
{
|
|
{
|
|
|
if (item==null)
|
|
if (item==null)
|
|
|
throw new ArgumentNullException(nameof(item));
|
|
throw new ArgumentNullException(nameof(item));
|
|
@@ -401,7 +401,7 @@ namespace qdr.fnd.core.pqueue
|
|
|
item = GetItemInternal(item.Id);
|
|
item = GetItemInternal(item.Id);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- private IPsQueueItem GetItemInternal(string itemId)
|
|
|
|
|
|
|
+ protected IPsQueueItem GetItemInternal(string itemId)
|
|
|
{
|
|
{
|
|
|
ValidateItemId(itemId);
|
|
ValidateItemId(itemId);
|
|
|
|
|
|