Format:
Recent snippets matching tags of ninject
public class AppBootstrapper : Bootstrapper<IShell> { private IKernel mKernel; private const string EXTENSION_PATH = "extensions"; static AppBootstrapper() { //Caliburn.Micro.LogManager.GetLog = type => new NLogLogger(type); }
83 Views
no comments
using System.IO; using System.Text; using Ninject; using NUnit.Framework; using Should.Extensions.AssertExtensions; namespace ninject.configurer.tests { public class GreeterConfig {
207 Views
no comments
using System; using System.Collections.Specialized; using System.Configuration; using Ninject.Modules; namespace Cirrostrata.NinjectConfigurator { public interface IConfigurableNinjectModule : INinjectModule { IConfigurationSyntax Configure<T>();
314 Views
no comments
Bind<IFoobar>().To<Foo>().Only(When.Context.Variable("foobar").EqualTo("foo")); Bind<IFoobar>().To<Bar>().Only(When.Context.Variable("foobar").EqualTo("bar")); var foobar = kernel.Get<IFoobar>(With.Parameters.Variable("foobar", "foo"));
296 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
