Exemplo n.º 1
0
        /// <summary>
        /// Load your modules or register your services here!
        /// </summary>
        /// <param name="kernel">The kernel.</param>
        private static void RegisterServices(IKernel kernel)
        {
            var containerConfigurator = new NinjectConfigurator();

            containerConfigurator.Configure(kernel);

            ConfigureControllerDependencyBlock(kernel);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Load your modules or register your services here!
        /// </summary>
        /// <param name="kernel">The kernel.</param>
        private static void RegisterServices(IKernel kernel)
        {
            if (kernel == null)
            {
                throw new ArgumentNullException(nameof(kernel));
            }

            var containerConfigurator = new NinjectConfigurator();

            containerConfigurator.Configure(kernel);
        }
Exemplo n.º 3
0
        private static void RegisterServices(IKernel kernel)
        {
            var containerConfigurator = new NinjectConfigurator();

            containerConfigurator.Configure(kernel);
        }
Exemplo n.º 4
0
 private static void RegisterServices(IKernel kernel)
 {
     var containerConfigurator = new NinjectConfigurator();
     containerConfigurator.Configure(kernel);
 }