Never mind Craig, I was using a to old version of the facility.
And thank you for this great tool.



On Apr 7, 10:54 pm, JoseFR <[email protected]> wrote:
> Yes, sorry and thank you...
>
> I've moved to (DefaultServiceModel):
>
>                         Container.Register(Component.For
> (ServiceInterface)
>                                                .ImplementedBy(Service)
>                                                .ActAs(new
> DefaultServiceModel().Hosted()
>                                                         .AddEndpoints
> (WcfEndpoint.BoundTo(new BasicHttpBinding())))
>                                                .LifeStyle.Transient);
>
> BTW I'm with other problem:
>
> I've
>             var metadata =
>                 new ServiceMetadataBehavior { HttpGetEnabled = true };
>
>             Container.Register(Component
>                                         .For<IServiceBehavior>()
>                                         .Instance(metadata));
>
>            var returnFaults =
>                 new ServiceDebugBehavior
>                 {
>                         IncludeExceptionDetailInFaults = true,
>                         HttpHelpPageEnabled = true
>                 };
>
>             Container.Register(Component
>                                         .For<IServiceBehavior>()
>                                         .Instance(returnFaults));
>
> According to the documentation, but is not generating the metadata.
> I'm not really sure if this is the correct way to register the
> behaviour in the container.
> It's work well if I put the behaviuor in the web.config.
>
> On 7 abr, 22:02, Craig Neuwirt <[email protected]> wrote:
>
> > It has the default public ctor
>
> > On Tue, Apr 7, 2009 at 7:12 PM, JoseFR <[email protected]> wrote:
>
> > > Sorry, I put the message in the wrong list
>
> > > On 7 abr, 21:05, JoseFR <[email protected]> wrote:
> > > > In this post:
> > >http://groups.google.com/group/castle-project-devel/browse_thread/thr...
>
> > > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to