#pragma warning disable CS0618 // Type or member is obsolete // IDistributedLockManager is marked as obsolete, because it's not ready for "prime time" // however; it is used to managed singleton function execution within the functions fx !!! public GitHubAdapter( IAuthorizationSessionClient sessionClient, IAuthorizationTokenClient tokenClient, IDistributedLockManager distributedLockManager, ISecretsStoreProvider secretsStoreProvider, IHttpClientFactory httpClientFactory, IOrganizationRepository organizationRepository, IUserRepository userRepository, IDeploymentScopeRepository deploymentScopeRepository, IProjectRepository projectRepository, IComponentRepository componentRepository, IComponentTemplateRepository componentTemplateRepository, IAzureSessionService azureSessionService, IAzureResourceService azureResourceService, IGraphService graphService, IFunctionsHost functionsHost = null) : base(sessionClient, tokenClient, distributedLockManager, secretsStoreProvider, azureSessionService, graphService, organizationRepository, deploymentScopeRepository, projectRepository, userRepository) { this.httpClientFactory = httpClientFactory ?? new DefaultHttpClientFactory(); this.organizationRepository = organizationRepository ?? throw new ArgumentNullException(nameof(organizationRepository)); this.userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); this.deploymentScopeRepository = deploymentScopeRepository ?? throw new ArgumentNullException(nameof(deploymentScopeRepository)); this.projectRepository = projectRepository ?? throw new ArgumentNullException(nameof(projectRepository)); this.componentRepository = componentRepository ?? throw new ArgumentNullException(nameof(componentRepository)); this.componentTemplateRepository = componentTemplateRepository ?? throw new ArgumentNullException(nameof(componentTemplateRepository)); this.azureSessionService = azureSessionService ?? throw new ArgumentNullException(nameof(azureSessionService)); this.azureResourceService = azureResourceService ?? throw new ArgumentNullException(nameof(azureResourceService)); this.graphService = graphService ?? throw new ArgumentNullException(nameof(graphService)); this.functionsHost = functionsHost ?? FunctionsHost.Default; }
#pragma warning disable CS0618 // Type or member is obsolete // IDistributedLockManager is marked as obsolete, because it's not ready for "prime time" // however; it is used to managed singleton function execution within the functions fx !!! public KubernetesAdapter(IAuthorizationSessionClient sessionClient, IAuthorizationTokenClient tokenClient, IDistributedLockManager distributedLockManager, ISecretsStoreProvider secretsStoreProvider, IAzureSessionService azureSessionService, IAzureResourceService azureResourceService, IGraphService graphService, IOrganizationRepository organizationRepository, IDeploymentScopeRepository deploymentScopeRepository, IProjectRepository projectRepository, IUserRepository userRepository) : base(sessionClient, tokenClient, distributedLockManager, secretsStoreProvider, azureSessionService, graphService, organizationRepository, deploymentScopeRepository, projectRepository, userRepository) { this.azureResourceService = azureResourceService ?? throw new ArgumentNullException(nameof(azureResourceService)); }
#pragma warning disable CS0618 // Type or member is obsolete protected AdapterWithIdentity(IAuthorizationSessionClient sessionClient, IAuthorizationTokenClient tokenClient, IDistributedLockManager distributedLockManager, ISecretsStoreProvider secretsStoreProvider, IAzureSessionService azureSessionService, IGraphService graphService, IOrganizationRepository organizationRepository, IDeploymentScopeRepository deploymentScopeRepository, IProjectRepository projectRepository, IUserRepository userRepository) : base(sessionClient, tokenClient, distributedLockManager, secretsStoreProvider, azureSessionService, graphService, organizationRepository, deploymentScopeRepository, projectRepository, userRepository) { this.secretsStoreProvider = secretsStoreProvider ?? throw new ArgumentNullException(nameof(secretsStoreProvider)); this.azureSessionService = azureSessionService ?? throw new ArgumentNullException(nameof(azureSessionService)); this.graphService = graphService ?? throw new ArgumentNullException(nameof(graphService)); this.organizationRepository = organizationRepository ?? throw new ArgumentNullException(nameof(organizationRepository)); this.projectRepository = projectRepository ?? throw new ArgumentNullException(nameof(projectRepository)); }
#pragma warning disable CS0618 // Type or member is obsolete // IDistributedLockManager is marked as obsolete, because it's not ready for "prime time" // however; it is used to managed singleton function execution within the functions fx !!! public AzureResourceManagerAdapter(IAuthorizationSessionClient sessionClient, IAuthorizationTokenClient tokenClient, IDistributedLockManager distributedLockManager, ISecretsStoreProvider secretsStoreProvider, IAzureSessionService azureSessionService, IGraphService graphService, IAzureResourceService azureResourceService, IOrganizationRepository organizationRepository, IUserRepository userRepository, IDeploymentScopeRepository deploymentScopeRepository, IProjectRepository projectRepository, IComponentRepository componentRepository, IComponentTemplateRepository componentTemplateRepository) : base(sessionClient, tokenClient, distributedLockManager, secretsStoreProvider, azureSessionService, graphService, organizationRepository, deploymentScopeRepository, projectRepository, userRepository) { this.azureSessionService = azureSessionService ?? throw new ArgumentNullException(nameof(azureSessionService)); this.azureResourceService = azureResourceService ?? throw new ArgumentNullException(nameof(azureResourceService)); this.organizationRepository = organizationRepository ?? throw new ArgumentNullException(nameof(organizationRepository)); this.userRepository = userRepository ?? throw new ArgumentNullException(nameof(userRepository)); this.deploymentScopeRepository = deploymentScopeRepository ?? throw new ArgumentNullException(nameof(deploymentScopeRepository)); this.projectRepository = projectRepository ?? throw new ArgumentNullException(nameof(projectRepository)); this.componentRepository = componentRepository ?? throw new ArgumentNullException(nameof(componentRepository)); this.componentTemplateRepository = componentTemplateRepository ?? throw new ArgumentNullException(nameof(componentTemplateRepository)); }