User: xtoff
Date: 2010/01/22 03:04 PM

Modified:
 
/InversionOfControl/trunk/src/Castle.MicroKernel.Tests/Facilities/FactorySupport/
  FactorySupportProgrammaticTestCase.cs
 /InversionOfControl/trunk/src/Castle.MicroKernel/Facilities/FactorySupport/
  FactorySupportFacility.cs

Log:
 - obsoleted programatic configuration support on factory support facility in 
favor of fluent registration APIs 'UsingFactoryMethod' method

File Changes:

Directory: 
/InversionOfControl/trunk/src/Castle.MicroKernel/Facilities/FactorySupport/
======================================================================================

File [modified]: FactorySupportFacility.cs
Delta lines: +4 -0
===================================================================

--- 
InversionOfControl/trunk/src/Castle.MicroKernel.Tests/Facilities/FactorySupport/FactorySupportProgrammaticTestCase.cs
       2010-01-22 19:14:09 UTC (rev 6710)
+++ 
InversionOfControl/trunk/src/Castle.MicroKernel.Tests/Facilities/FactorySupport/FactorySupportProgrammaticTestCase.cs
       2010-01-22 22:04:51 UTC (rev 6711)
@@ -39,7 +39,9 @@
                public void FactoryResolveWithProposedFacilityPatch()
                {
                        string serviceKey = "someService";
+#pragma warning disable 0618 //call to obsolete method
                        facility.AddFactory<ISomeService, 
ServiceFactory>(serviceKey, "Create");
+#pragma warning restore
 
                        ISomeService service = kernel.Resolve(serviceKey,
                                                              
typeof(ISomeService)) as ISomeService;
@@ -52,7 +54,9 @@
                public void 
Factory_AsAPublisherOfValues_CanBeResolvedByDependents()
                {
                        string serviceKey = "someService";
+#pragma warning disable 0618 //call to obsolete method
                        facility.AddFactory<TimeSpan, 
ServiceFactory>(serviceKey, "get_Something");
+#pragma warning restore
 
                        kernel.Register(Component.For<SettingsConsumer>().

Directory: 
/InversionOfControl/trunk/src/Castle.MicroKernel.Tests/Facilities/FactorySupport/
============================================================================================

File [modified]: FactorySupportProgrammaticTestCase.cs
Delta lines: +0 -0
===================================================================

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-commits?hl=en.

Reply via email to