Singleton
This page was created by Stephanie@mdriven.net on 2024-05-28. Last edited by Hans.karlsen@mdriven.net on 2025-02-24.


The name of a design pattern that establishes a Class that will only have one object instance.

In code you can go like this

this.ServiceProvider().GetEcoService<IExtentService>().AllInstances(typeof(YourClass))[0].GetValue<YourClass>()

In ocl/eal go like this:

YourClass.oclSingleton or YourClass.allinstances->first
MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments