Exemplo n.º 1
0
 public InvocationContext(
     IAzResourceTypeLoader azResourceTypeLoader,
     TextWriter outputWriter,
     TextWriter errorWriter,
     IFeatureProvider?features = null,
     IContainerRegistryClientFactory?clientFactory = null,
     ITemplateSpecRepositoryFactory?templateSpecRepositoryFactory = null)
 {
     // keep the list of services in this class in sync with the logic in the AddInvocationContext() extension method
     OutputWriter  = outputWriter;
     ErrorWriter   = errorWriter;
     Features      = features ?? new FeatureProvider();
     ClientFactory = clientFactory ?? new ContainerRegistryClientFactory(new TokenCredentialFactory());
     TemplateSpecRepositoryFactory = templateSpecRepositoryFactory ?? new TemplateSpecRepositoryFactory(new TokenCredentialFactory());
     NamespaceProvider             = new DefaultNamespaceProvider(azResourceTypeLoader, Features);
 }
 public ExtensibilityNamespaceProvider(IAzResourceTypeLoader azResourceTypeLoader, IFeatureProvider featureProvider)
 {
     defaultNamespaceProvider = new DefaultNamespaceProvider(azResourceTypeLoader, featureProvider);
 }
Exemplo n.º 3
0
 public DefaultNamespaceProvider(IAzResourceTypeLoader azResourceTypeLoader, IFeatureProvider featureProvider)
 {
     this.azResourceTypeLoader = azResourceTypeLoader;
     this.featureProvider      = featureProvider;
 }