Glue.Bind

Binds a key to an instance which will be provided later in the DSL (Domain Specific Language)

Example Default Usage

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

(Object) Bind(key(String) The key/name of the object to be bound )

Param

  • key

    (String)

    The key/name of the object to be bound

Return

  • (Object)

    returns a KeyedBinding for that given key, which will then be bound to an instance