---
title: "Delegate Injector.Factory | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Configuration/Injector.Factory/"
---

# Delegate Injector.Factory

> `Autofac.IContainer`

###### **Namespace**: [Aurigma.DesignAtoms.Configuration](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Configuration.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public delegate IContainer Factory();
```

## Constructors

### Factory

```csharp
public Factory(object object, IntPtr method)
```

## Methods

### Invoke

```csharp
public virtual IContainer Invoke()
```

##### Returns

### BeginInvoke

```csharp
public virtual IAsyncResult BeginInvoke(AsyncCallback callback, object object)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.AsyncCallback` | *callback* |  |
| `System.Object` | *object* |  |

##### Returns

`System.IAsyncResult`

### EndInvoke

```csharp
public virtual IContainer EndInvoke(IAsyncResult result)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.IAsyncResult` | *result* |  |

##### Returns

`Autofac.IContainer`
