> **Experimental**
>
> `@aws-cdk/aws-applicationsignals-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# DotNetInjector

Base class for .NET SDK injectors. Contains common .NET configuration settings used by both Windows and Linux implementations.

Extends: Injector › DotNetInjector
Superclass of: DotNetLinuxInjector, DotNetWindowsInjector

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/enablement/ecs-sdk-instrumentation.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-applicationsignals-alpha/lib/enablement/ecs-sdk-instrumentation.ts#L228)

## Initializer

```ts
new DotNetInjector(sharedVolumeName: string, instrumentationVersion: InstrumentationVersion, overrideEnvironments?: EnvironmentExtension[])
```

## Properties

- `command`: string[] — The command to run the init container.

- `containerPath`: string — The path to ADOT SDK agent in the init container.

## Methods

- `injectInitContainer(taskDefinition: TaskDefinition): ContainerDefinition` — Inject ADOT SDK agent init container.

  **Parameters**

  - `taskDefinition` — The TaskDefinition to render.

  **Returns:** The created ContainerDefinition

- `renderDefaultContainer(taskDefinition: TaskDefinition): void` — Render the application container for SDK instrumentation.

  **Parameters**

  - `taskDefinition` — The TaskDefinition to render.
