public static object Get(this IGetKernel kernel, Type type, params BindArg[] args) { if (args == null || args.Length == 0) { return(kernel.Get(type)); } var argKernel = new ArgKernel(kernel, args); return(argKernel.Get(type)); }
public static T Get <T>(this IGetKernel kernel, params BindArg[] args) { return((T)kernel.Get(typeof(T), args)); }
// For syntax compatibility with NInject public static T Inject <T>(this IGetKernel kernel) { return(kernel.Get <T>()); }
public static T Get <T>(this IGetKernel kernel) { return((T)kernel.Get(typeof(T))); }