Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Microsoft.Practices.Unity;
- using Microsoft.Practices.Unity.Configuration;
- namespace Umbraco.Extensions.App_Start
- {
- /// <summary>
- /// Specifies the Unity configuration for the main container.
- /// </summary>
- public class UnityConfig
- {
- private static Lazy<IUnityContainer> container = new Lazy<IUnityContainer>(() => new UnityContainer());
- /// <summary>
- /// Gets the configured Unity container.
- /// </summary>
- public static IUnityContainer GetConfiguredContainer()
- {
- return container.Value;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement