In global i have some component registration:
windsorContainer.AddFacility<WcfFacility>().Register(
Component.For<MemberService>().LifeStyle.PerWebRequest,
Component.For<IEndpointBehavior>().ImplementedBy<MyWebHttpBehavior>()
);
and in a MemberService.svc file i have some mark up:
<%@ ServiceHost Service="MemberService"
CodeBehind="MemberService.svc.cs"
Factory="Castle.Facilities.WcfIntegration.WindsorServiceHostFactory`1[[Castle.Facilities.WcfIntegration.Rest.RestServiceModel,
Castle.Facilities.WcfIntegration]],
Castle.Facilities.WcfIntegration" %>
and an operation on a service class.
---memberService.cs
[OperationContract]
[WebGet(UriTemplate = "member/{Id}")]
public MemberListItem Member(string id)
{
}
If I then call the service http://localhost/MemberService.svc/member/12
the MemberService object is inected with the registered dependencies
which is good but MyWebHttpBehavior is not called. For other standard/
non-rest wcf operations the behavior is called as expected. Does any
one no why this is?
--
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.