Actually I think you introduced it as part of this commit: http://github.com/castleproject/Castle.Facilities.Wcf/commit/48036f19f1d9afd1aed5c66725b37f170f3f9439
I also see you have SnippetOpenEagerly(), what's this for? Any other gems that I should be aware before updating? Cheers John ________________________________ From: Craig Neuwirt <[email protected]> To: [email protected] Sent: Wed, 25 August, 2010 10:14:36 PM Subject: Re: Wcf facility restservicemodel binding config No, it's been there since the start. Basically, it lets the Facility know you intend the service to be managed by some hosting entity (IIS in this case) so the facility doesn't need to create the ServiceHost. This almost always means a ServiceHostFactory is supplied. On Aug 25, 2010, at 6:03 AM, John Simons wrote: Craig, > >Is that setting new? >What does it do? > >Cheers >John > > > > ________________________________ From: Craig Neuwirt <[email protected]> >To: [email protected] >Sent: Tue, 24 August, 2010 9:31:56 PM >Subject: Re: Wcf facility restservicemodel binding config > > >Your configuration looks mostly correct. I believe you need to add Hosted to >the registration somc you are hosted in IIS > > Component.For<IOrder>() > .Named("order.service") > .ImplementedBy<Order>() > .ActAs(new RestServiceModel() > { > Endpoints = new IWcfEndpoint[] { WcfEndpoint.BoundTo(new >WebHttpBinding() { TransferMode=TransferMode.Streamed, >MaxBufferSize=int.MaxValue,MaxReceivedMessageSize=long.MaxValue >}).At(OrderUrlBase) } > }).Hosted() > >Also, ActAs should be replaced with AsWcfClient (but that is mostly cosmetic) > >On Mon, Aug 23, 2010 at 11:03 AM, James <[email protected]> wrote: > >How do I change WCF binding values for a rest service hosted in IIS in >>my global.asax.cs configuration (am using the fluent api) ? >> >>I have a rest service hosted in IIS where I need to change the >>maxreceivedmessagesize etc on the WCF binding. >> >>In my test suite I have fixed this using the ActAs code below. >> >> Component.For<IOrder>() >> .Named("order.service") >> .ImplementedBy<Order>() >> .ActAs(new RestServiceModel() >> { >> Endpoints = new IWcfEndpoint[] { WcfEndpoint.BoundTo(new >>WebHttpBinding() { TransferMode=TransferMode.Streamed, >>MaxBufferSize=int.MaxValue,MaxReceivedMessageSize=long.MaxValue >>}).At(OrderUrlBase) } >> }) >> >>My svc file looks like this >> >><%@ ServiceHost >> Language="C#" >> Debug="true" >> Service="order.service" >> >>Factory="Castle.Facilities.WcfIntegration.WindsorServiceHostFactory`1[[Castle.Facilities.WcfIntegration.Rest.RestServiceModel,Castle.Facilities.WcfIntegration]], >> >>Castle.Facilities.WcfIntegration" %> >> >>But I cannot get this to work in the global.asax.cs configuration >> >>Version of castle.facilities.wcfintegration 1.0.3.0 >> >>THANKS in advance. >> >>-- >>You received this message because you are subscribed to the Google Groups >>"Castle Project Users" 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-users?hl=en. >> >> > > >-- >You received this message because you are subscribed to the Google Groups >"Castle Project Users" 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-users?hl=en. > > > >-- >You received this message because you are subscribed to the Google Groups >"Castle Project Users" 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-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" 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-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Castle Project Users" 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-users?hl=en.
