I'd like to use unity container to implement a singleton design.
for example:
create the singleton:
container.RegistryInstance<IClass>(new Class())
get the singleton instance:
container.Resolve<IClass>()
Can I do the same but with a class and not with interface?
for example:
create the singleton:
container.RegistryInstance<Class>(new Class())
get the singleton:
container.Resolve<Class>()