public static void RegisterType <T1, T2>(bool pUsaParametros, string pAlias = "", bool pSingleton = false, bool pInjetaContainer = true, params object[] parameterValues) where T2 : T1 { if (!String.IsNullOrEmpty(pAlias)) { ContainerIoc.RegisterType <T1, T2>(pUsaParametros, pSingleton, pInjetaContainer, parameterValues); } else { ContainerIoc.RegisterType <T1, T2>(pAlias, pUsaParametros, pSingleton, pInjetaContainer, parameterValues); } }
public static void RegisterType <T1, T2>(string pAlias = "", bool pSingleton = false) where T2 : T1 { if (!String.IsNullOrEmpty(pAlias)) { ContainerIoc.RegisterType <T1, T2>(pAlias, pSingleton); } else { ContainerIoc.RegisterType <T1, T2>(pSingleton); } }