Currently I'm using a singleton class and it works ok in every place I use it. However I'd like to make use of Unity IoC container for that. Registering it as below doesn't work the way I would like it to:

```
container.RegisterInstance(new SomeNiceClass(), new ContainerControlledLifetimeManager());

```

Meaning that if I do this:

```
container.Resolve<SomeNiceClass>();

```

In a class in assembly other than that it was first registered, I will get a new instance.