namespace Quadarax.Foundation.Core.Business.Processor.Task; public interface IAffinityToken : IEquatable { /// /// Contains the queue identifier which is used to identify owning/locking queue. /// string QueueIdentifier { get; } /// /// Contains the worker ordinal which is used to identify owning/locking worker. /// int? WorkerOrdinal { get; } /// /// Setup affinity token from complex string representation. /// /// Complex affinity token representation void FromComplex(string affinityTokenComplex); /// /// Setup affinity token from queue identifier and worker ordinal. /// /// queue identifier /// Worker ordinal number void Set(string queueIdentifier, int workerOrdinal); string ToString(); }