Rename Concelier Source modules to Connector
This commit is contained in:
		
							
								
								
									
										22
									
								
								src/StellaOps.Concelier.Connector.CertCc/Jobs.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								src/StellaOps.Concelier.Connector.CertCc/Jobs.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| using System; | ||||
| using System.Threading; | ||||
| using System.Threading.Tasks; | ||||
| using StellaOps.Concelier.Core.Jobs; | ||||
|  | ||||
| namespace StellaOps.Concelier.Connector.CertCc; | ||||
|  | ||||
| internal static class CertCcJobKinds | ||||
| { | ||||
|     public const string Fetch = "source:cert-cc:fetch"; | ||||
| } | ||||
|  | ||||
| internal sealed class CertCcFetchJob : IJob | ||||
| { | ||||
|     private readonly CertCcConnector _connector; | ||||
|  | ||||
|     public CertCcFetchJob(CertCcConnector connector) | ||||
|         => _connector = connector ?? throw new ArgumentNullException(nameof(connector)); | ||||
|  | ||||
|     public Task ExecuteAsync(JobExecutionContext context, CancellationToken cancellationToken) | ||||
|         => _connector.FetchAsync(context.Services, cancellationToken); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user