Interface IClientArtifactsActivator
Defines a system that can activate artifact instances using a service provider.
public interface IClientArtifactsActivator
Methods
Activate(IServiceProvider, Type)
Creates an instance of the specified artifact type using the given service provider.
Catch<ActivatedArtifact> Activate(IServiceProvider scopedServiceProvider, Type artifactType)
Parameters
scopedServiceProviderIServiceProviderThe scoped IServiceProvider for resolving dependencies.
artifactTypeTypeThe Type of the artifact to create.
Returns
- Catch<ActivatedArtifact>
An ActivatedArtifact wrapping the created instance.
Activate(Type)
Creates an instance of the specified artifact type using the root service provider.
Catch<ActivatedArtifact> Activate(Type artifactType)
Parameters
Returns
- Catch<ActivatedArtifact>
An ActivatedArtifact wrapping the created instance.
ActivateNonDisposable(Type)
Creates an instance of the specified artifact type using the root service provider.
Catch<object> ActivateNonDisposable(Type artifactType)
Parameters
Returns
- Catch<object>
An ActivatedArtifact wrapping the created instance.
ActivateNonDisposable<T>(Type)
Creates an instance of the specified artifact type using the root service provider.
Catch<T> ActivateNonDisposable<T>(Type artifactType) where T : class
Parameters
Returns
- Catch<T>
An ActivatedArtifact wrapping the created instance.
Type Parameters
TThe type of the artifact to create.
Activate<T>(IServiceProvider, Type)
Creates an instance of the specified artifact type using the given service provider.
Catch<ActivatedArtifact<T>> Activate<T>(IServiceProvider scopedServiceProvider, Type artifactType) where T : class
Parameters
scopedServiceProviderIServiceProviderThe scoped IServiceProvider for resolving dependencies.
artifactTypeTypeThe Type of the artifact to create.
Returns
- Catch<ActivatedArtifact<T>>
An ActivatedArtifact wrapping the created instance.
Type Parameters
TThe type of the artifact to create.
Activate<T>(Type)
Creates an instance of the specified artifact type using the root service provider.
Catch<ActivatedArtifact<T>> Activate<T>(Type artifactType) where T : class
Parameters
Returns
- Catch<ActivatedArtifact<T>>
An ActivatedArtifact wrapping the created instance.
Type Parameters
TThe type of the artifact to create.