Rename Concelier Source modules to Connector
This commit is contained in:
		@@ -0,0 +1,19 @@
 | 
			
		||||
using Microsoft.Extensions.DependencyInjection;
 | 
			
		||||
using StellaOps.Plugin;
 | 
			
		||||
 | 
			
		||||
namespace StellaOps.Concelier.Connector.CertIn;
 | 
			
		||||
 | 
			
		||||
public sealed class CertInConnectorPlugin : IConnectorPlugin
 | 
			
		||||
{
 | 
			
		||||
    public const string SourceName = "cert-in";
 | 
			
		||||
 | 
			
		||||
    public string Name => SourceName;
 | 
			
		||||
 | 
			
		||||
    public bool IsAvailable(IServiceProvider services) => services is not null;
 | 
			
		||||
 | 
			
		||||
    public IFeedConnector Create(IServiceProvider services)
 | 
			
		||||
    {
 | 
			
		||||
        ArgumentNullException.ThrowIfNull(services);
 | 
			
		||||
        return ActivatorUtilities.CreateInstance<CertInConnector>(services);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user