CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of ninject
C#
public class AppBootstrapper : Bootstrapper<IShell>
    {
        private IKernel mKernel;
        private const string EXTENSION_PATH = "extensions";
 
        static AppBootstrapper()
        {
            //Caliburn.Micro.LogManager.GetLog = type => new NLogLogger(type);
        }
by patrick   February 21, 2012 @ 2:10am
83 Views
no comments
 
C#
using System.IO;
using System.Text;
using Ninject;
using NUnit.Framework;
using Should.Extensions.AssertExtensions;
 
namespace ninject.configurer.tests
{
    public class GreeterConfig
    {
by Andy Sherwood   October 28, 2010 @ 2:19pm
207 Views
no comments
 
C#
using System;
using System.Collections.Specialized;
using System.Configuration;
using Ninject.Modules;
 
namespace Cirrostrata.NinjectConfigurator
{
    public interface IConfigurableNinjectModule : INinjectModule
    {
        IConfigurationSyntax Configure<T>();
by Andy Sherwood   October 26, 2010 @ 11:16am
314 Views
no comments
 
C#
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"));
by Geir-Tore Lindsve   January 08, 2010 @ 1:29am
Tags: ninject
296 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate