up
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Docs CI / lint-and-preview (push) Has been cancelled
				
			
		
			
				
	
				Build Test Deploy / build-test (push) Has been cancelled
				
			
		
			
				
	
				Build Test Deploy / authority-container (push) Has been cancelled
				
			
		
			
				
	
				Build Test Deploy / docs (push) Has been cancelled
				
			
		
			
				
	
				Build Test Deploy / deploy (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Docs CI / lint-and-preview (push) Has been cancelled
				
			Build Test Deploy / build-test (push) Has been cancelled
				
			Build Test Deploy / authority-container (push) Has been cancelled
				
			Build Test Deploy / docs (push) Has been cancelled
				
			Build Test Deploy / deploy (push) Has been cancelled
				
			This commit is contained in:
		
							
								
								
									
										35
									
								
								src/StellaOps.Scanner.Queue/IScanQueueLease.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								src/StellaOps.Scanner.Queue/IScanQueueLease.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Threading; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace StellaOps.Scanner.Queue; | ||||
|  | ||||
| public interface IScanQueueLease | ||||
| { | ||||
|     string MessageId { get; } | ||||
|  | ||||
|     string JobId { get; } | ||||
|  | ||||
|     ReadOnlyMemory<byte> Payload { get; } | ||||
|  | ||||
|     int Attempt { get; } | ||||
|  | ||||
|     DateTimeOffset EnqueuedAt { get; } | ||||
|  | ||||
|     DateTimeOffset LeaseExpiresAt { get; } | ||||
|  | ||||
|     string Consumer { get; } | ||||
|  | ||||
|     string? IdempotencyKey { get; } | ||||
|  | ||||
|     IReadOnlyDictionary<string, string> Attributes { get; } | ||||
|  | ||||
|     Task AcknowledgeAsync(CancellationToken cancellationToken = default); | ||||
|  | ||||
|     Task RenewAsync(TimeSpan leaseDuration, CancellationToken cancellationToken = default); | ||||
|  | ||||
|     Task ReleaseAsync(QueueReleaseDisposition disposition, CancellationToken cancellationToken = default); | ||||
|  | ||||
|     Task DeadLetterAsync(string reason, CancellationToken cancellationToken = default); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user