Adds the supplied singleton (object) to this factory's singleton cache.
To be called for eager registration of singletons, e.g. to be able to resolve circular references.
Note If a singleton has already been registered under the same name as the supplied name, then the old singleton will be replaced.
|ArgumentNullException||If the name argument is a null reference (Nothing in Visual Basic) or consists wholly of whitespace characters; or if the singleton is a null reference (Nothing in Visual Basic).|