Example #1
0
        /// <summary>
        /// Creates the given service type.
        /// </summary>
        /// <param name="serviceType">Type of the service.</param>
        /// <param name="kernel">The kernel.</param>
        /// <param name="container">The IOC container that contains all the references.</param>
        private static void CreateService(Type serviceType, IKernel kernel, IContainer container)
        {
            var service = container.Resolve(serviceType) as KernelService;

            kernel.Install(service);
        }
Example #2
0
 /// <summary>
 /// Creates the given service type.
 /// </summary>
 /// <param name="serviceType">Type of the service.</param>
 /// <param name="kernel">The kernel.</param>
 /// <param name="container">The IOC container that contains all the references.</param>
 private static void CreateService(Type serviceType, IKernel kernel, IContainer container)
 {
     var service = container.Resolve(serviceType) as KernelService;
     kernel.Install(service);
 }