Glue.Get

Warn

  • Throws an exception if the binding does not exist

Gets an instance for a bound object

Example Default Usage

var glue = new Glue(); glue.Bind("some-service").To(new SomeService()); var someService = glue.Get("some-service");

(Object) Get(key(String) The key/name of the object to be returned )

Param

  • key

    (String)

    The key/name of the object to be returned

Return

  • (Object)

    The instance bound to that key