[SPRNET-1514] Add IFactoryObject implementation to support arbitrary delegate invocation for object creation Created: 18/Jul/12  Updated: 11/Jan/13  Resolved: 18/Jul/12

Status: Resolved
Project: Spring.NET
Component/s: Spring-NET-CORE
Affects Version/s: 2.0 M1
Fix Version/s: 2.0 M2

Type: New Feature Priority: Minor
Reporter: Steve Bohlen Assignee: Steve Bohlen
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We should provide a conventience implementation of IFactoryObject that supports the user providing a simple Func<T> (where T is the type of object the factory should build). This will permit the user to 'register' any arbitrary object + creation method with the container. This request came from the NServiceBus team so that SPRNET could have 'parity' in re: functionality with the other containers supported 'natively' with NServiceBus.



 Comments   
Comment by Steve Bohlen [ 18/Jul/12 ]

Added DelegatingFactoryObject<T> and related tests

Generated at Sat Jul 04 19:11:03 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.