Advertisement
gunnim

Untitled

Jul 24th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement