/csharp-signelton-pattern

csharp singleton design pattern

Primary LanguageC#

C# Singleton

The Singleton design pattern ensures a class has only one instance and provide a global point of access to it.

Frequency of use: medium-high

Participants:

The classes and objects participating in this pattern include:

  • Singleton (LoadBalancer):
    -- defines an Instance operation that lets clients access its unique instance. Instance is a class operation responsible for creating and maintaining its own unique instance.