---
title: "Class SingletonFactory&lt;T&gt; | Customer&#x27;s Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Common.Singleton/SingletonFactory_T_/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
    entity_id: "https://customerscanvas.com/glossary/customers-canvas-on-premises#software-application"
  - product: "Design Atoms .NET"
    versions: ["7.4"]
    entity_id: "https://customerscanvas.com/glossary/design-atoms-net#software-application"
---

# Class SingletonFactory<T>

**Applies to:** Customer's Canvas On-Premises; Design Atoms .NET 7.4

> Class SingletonFactory in the Aurigma.DesignAtoms.Common.Singleton namespace.

# Class SingletonFactory&lt;T&gt;

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

**Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public class SingletonFactory<T>
    where T : class
```

**Inheritance:** `System.Object` -> SingletonFactory&lt;T&gt;

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Constructors

### SingletonFactory

```csharp
public SingletonFactory(Func<T> factoryMethod)
```

## Methods

### GetInstance

```csharp
public T GetInstance()
```

#### Returns

`<T>`

#### Type Parameters

| Name | Description |
|:---|:---|
| `T` |  |
