Craig, I have a named metadata behavior in web.config but not sure how to
hook it in installer. What is the proper way to hook metadataexchange from
installer?
See the following attachments for my my metadata behavior in web.config and
my abstract service host installer
<behaviors>
<serviceBehaviors>
<behavior name="TokenIssuerServiceBehavior">
<!--
The serviceMetadata behavior allows one to enable metadata (e.g.
WSDL, Policy) publishing.
This configuration enables publishing of such data over HTTP GET.
-->
<serviceMetadata httpsGetEnabled="true" httpGetEnabled ="true" />
<!--
Using the "Host" HTTP header of the incoming metadata request
http://support.microsoft.com/kb/971842
-->
<useRequestHeadersForMetadataAddress/>
<!-- To receive exception details in faults for debugging
purposes, set the value below to true. Set to false before deployment to
avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
public class WSTrustServiceInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container,
Castle.MicroKernel.IConfigurationStore store)
{
//http://docs.castleproject.org/Windsor.WCF-Facility-Registration.ashx
//http://candland.net/blog/page/3/
var facility = new WcfFacility();
container.AddFacility("wcf", facility);
facility.Services.AddServiceHostBuilder<WSTrustServiceHostBuilder,
WSTrustServiceModel>();
container.Register(Component.For<IWSTrust13SyncContract>()
.ImplementedBy<WSTrustServiceContract>()
.Named("WSTrustService")
.ActAs(new WSTrustServiceModel().Hosted()));
}
}
--
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.