What exactly does "Configure"?

30 views
Skip to first unread message

Monika

unread,
Aug 31, 2018, 4:37:20 PM8/31/18
to structuremap-users
Hello,
I would like to ask what exactly does "Configure"? For example in following sample:

ForConcreteType<ClassName>().Configure.Singleton();

Jeremy Miller

unread,
Aug 31, 2018, 4:40:20 PM8/31/18
to structure...@googlegroups.com
Really just syntactical sugar for:

For<ClassName>().Use<ClassName>().Singleton();

--
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/5d20670b-c158-4b5b-952a-52bc92782447%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Monika

unread,
Aug 31, 2018, 4:41:17 PM8/31/18
to structuremap-users
Can somebody prepare an example of usage of it?

Jeremy Miller

unread,
Aug 31, 2018, 4:47:07 PM8/31/18
to structure...@googlegroups.com
Search for the unit tests on GitHub is the best thing I can tell you to do

--
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.

Monika

unread,
Aug 31, 2018, 5:32:39 PM8/31/18
to structuremap-users
Thank you for explanation.
Reply all
Reply to author
Forward
0 new messages