Wow, I thought that was already there :-(

On Aug 25, 2010, at 7:17 AM, Krzysztof Koźmic wrote:

> great,
> 
> now put this in the doco :)
> 
> 
> On 25/08/2010 10:14 PM, Craig Neuwirt wrote:
>> 
>> 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.

-- 
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.

Reply via email to