Provides helper extension methods for the IServiceProvider
Gets from the dependency injection container an IScriptExecutorService service with the specified name.
public IScriptExecutorService GetScriptExecutorRequiredService(provider, name)
An IScriptExecutorService service for the specified name.
Name | Type | Summary |
---|---|---|
provider | IServiceProvider | The IServiceProvider. |
name | String | The name of the service to get. |
Type | Summary |
---|---|
ArgumentException | Thrown when name is null or empty. |
InvalidOperationException | Thrown when there is no ITableDscService service with the specified name. |
Gets from the dependency injection container an ITableDscService service with the specified name.
public ITableDscService GetTableDscRequiredService(provider, name)
An ITableDscService service for the specified name.
Name | Type | Summary |
---|---|---|
provider | IServiceProvider | The IServiceProvider. |
name | String | The name of the service to get. |
Type | Summary |
---|---|
ArgumentException | Thrown when name is null or empty. |
InvalidOperationException | Thrown when there is no ITableDscService service with the specified name. |
In this document