[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


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.

Comment by Steve Bohlen [ 18/Jul/12 ]

Added DelegatingFactoryObject<T> and related tests

Generated at Sat Jan 25 16:56:46 UTC 2020 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.