private static void RegisterIoC() { if (container == null) { container = CreateUnityContainer(); } } #endregion