Advertisement
gunnim

Untitled

Jul 24th, 2017
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using Microsoft.Practices.Unity;
  3. using Microsoft.Practices.Unity.Configuration;
  4.  
  5. namespace Umbraco.Extensions.App_Start
  6. {
  7.     /// <summary>
  8.     /// Specifies the Unity configuration for the main container.
  9.     /// </summary>
  10.     public class UnityConfig
  11.     {
  12.         private static Lazy<IUnityContainer> container = new Lazy<IUnityContainer>(() => new UnityContainer());
  13.  
  14.         /// <summary>
  15.         /// Gets the configured Unity container.
  16.         /// </summary>
  17.         public static IUnityContainer GetConfiguredContainer()
  18.         {
  19.             return container.Value;
  20.         }
  21.     }
  22. }
Advertisement
RAW Paste Data Copied
Advertisement