diff --git a/Src/CrispyWaffle/Composition/ServiceLocator.cs b/Src/CrispyWaffle/Composition/ServiceLocator.cs index ee3ad1bc..cdc93159 100644 --- a/Src/CrispyWaffle/Composition/ServiceLocator.cs +++ b/Src/CrispyWaffle/Composition/ServiceLocator.cs @@ -685,17 +685,22 @@ public static void Register(Lifetime lifetime) } /// - /// A register with a custom instance creator as a function. + /// Registers the specified instance creator. /// - /// The interface binding implementation. - /// - /// The instance creator for an implementation onf . - /// - /// The lifecycle lifetime of the registration. - public static void Register( - Func instanceCreator, - Lifetime lifetime = Lifetime.Transient - ) + /// The type of the t contract. + /// The instance creator. + public static void Register(Func instanceCreator) + { + RegisterWithLifetimeCreatorInternal(Lifetime.Transient, instanceCreator); + } + + /// + /// Registers the specified instance creator. + /// + /// The type of the t contract. + /// The instance creator. + /// The lifetime. + public static void Register(Func instanceCreator, Lifetime lifetime) { RegisterWithLifetimeCreatorInternal(lifetime, instanceCreator); }