How to use StructureMap in c# WinForm application?

386 views
Skip to first unread message

Farzad Salehi

unread,
Jun 12, 2015, 3:37:58 PM6/12/15
to structure...@googlegroups.com
Hi
Very thanks for Structuremap programmers and developers.
I used that in ASP.NET and that is the best DI for my applications. But now I want to use from StructureMap in my C# WinForm application.
But I don't know how to use that in winform. I used that in win form such as Web Application but I get error and my Interfaces was null in my forms.
I used Entity Framework for database.
Have you any solution for my problem?
Please help me.
Best regards.

Kevin Miller

unread,
Jun 12, 2015, 3:46:54 PM6/12/15
to structure...@googlegroups.com
When your application is being started up. Create your container. I used SM 3 recently in a Winforms app for creating presenters. Worked great.





--
You received this message because you are subscribed to the Google Groups "structuremap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to structuremap-us...@googlegroups.com.
To post to this group, send email to structure...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/structuremap-users/31946a52-b55a-4ab9-b196-65a585d5c94b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages