Exemplo n.º 1
0
 public void Configure(BindingContext context)
 {
     context.bind( rule => rule.typeToBind = typeof(EmptyInterface), typeof(DerievedFromEmptyInterface));
 }
Exemplo n.º 2
0
 public void Configure(BindingContext context)
 {
     context.bind(rule => rule.markedWith = new ParametrizedWithEnumQualifier(ParametrizedWithEnumQualifier.EnumExample.B), typeof(OtherInterfaceImplementation));
 }
Exemplo n.º 3
0
 public void Configure(BindingContext context)
 {
     context.bind(rule => rule.typeToBind = typeof(EmptyInterface), exampleInstance);
 }