TryGetInstance and ConnectImplementationsToTypesClosing
7 views
Skip to first unread message
roend
unread,
Dec 18, 2009, 2:13:27 PM12/18/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to structuremap-users
I'm using ConnectImplementationsToTypesClosing on truck to register a set of types. When I try to get one of these types from the container with TryGetInstance it always returns null. However, if I call GetInstance it returns the correct type. Is this a bug?
Thanks, Nathan
Jeremy Miller
unread,
Dec 18, 2009, 9:31:41 PM12/18/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to structuremap-users
I just checked in the fix. SVN 273.
Thanks,
Jeremy
Jeremy Miller
unread,
Dec 18, 2009, 9:30:33 PM12/18/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to structuremap-users
I bet if you looked at the trunk, svn 273, you'd find that this bug is fixed.
That bug would only have happened in a narrow set of circumstances which you just bumped right into.