2
我有一個接口:使用Spring.Net,如何在控制檯應用程序中託管WCF服務?
[ServiceBehavior]
public interface ICartService
{
string DaoString {get;set;}
public GetString();
}
和類:使用Spring.Net
public class BigCartService:ICartService
{
public string DaoString {get;set;}
CallPrivateMethod(DaoString);
}
,我已經設置了對象:
<object id="bigcart" singleton="false" type="Cart.BigCartService, Cart">
<property name="DaoString" value="1"/>
</object>
如何承載它的Windows Console應用程序?
不應該BigCartService實現接口:ICartService? –