In this post:
http://groups.google.com/group/castle-project-devel/browse_thread/thread/4435ad57f89e61a5
Craig say:
> Nothing in Web.config
> This is for an IIS hosted, I'll make one for binsor non-iis shortly
> import System.Reflection
> import System.ServiceModel
> import System.ServiceModel.Description from System.ServiceModel
> import Castle.Facilities.Logging
> import Castle.Facilities.WcfIntegration
> import Rhino.Commons from Rhino.Commons.NHibernate
> facility WcfFacility
> component 'reservation_svc', IReservationService, ReservationService:
> ServiceModel = WcfServiceModel().Hosted() \
> .AddEndpoints(WcfEndpoint.BoundTo(BasicHttpBinding()))
I want to have this fluently... some like this:
Container.Register(Component.For(ServiceInterface)
.ImplementedBy(Service)
.ActAs(new WcfServiceModel
().Hosted()
.AddEndpoints
(WcfEndpoint.BoundTo(new BasicHttpBinding())))
.LifeStyle.Transient);
But wcfServiceModel has not public constructor...
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Development List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---