I have an interface:
[ServiceBehavior]
public interface ICartService
{
string DaoString {get;set;}
public GetString();
}
and a class:
public class BigCartService:ICartService
{
public string DaoString {get;set;}
CallPrivateMethod(DaoString);
}
Using Spring.Net, I have set the object as:
<object id="bigcart" singleton="false" type="Cart.BigCartService, Cart">
<property name="DaoString" value="1"/>
</object>
How do I host it in Windows Console Application?
Check the WCF quick start (The project ‘Spring.WcfQuickStart.ServerApp’)
You have to way to do that :
1) Using Spring’s IoC container
2) Programmatically