WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: ServiceSecurityContext is null with Castle Windsor WCF Integration Facility

Re: ServiceSecurityContext is null with Castle Windsor WCF Integration Facility

by Khash Sajadi :: Rate this Message:

| View in Thread

Awesome! It worked. I did this to get the client to be config-free as well:


            container
                .AddFacility<WcfFacility>()
                .Register(Types.FromAssemblyContaining<IMyService>()
                              .Where(t => t.Name.EndsWith("Service"))
                              .Configure(c => c.AsWcfClient(
                                  WcfEndpoint
                                      .BoundTo(new BasicHttpBinding() { 
                                          Security = 
                                          {
                                              Mode = BasicHttpSecurityMode.TransportCredentialOnly, 
                                              Transport = { ClientCredentialType = HttpClientCredentialType.Windows }
                                          } 
                                      })
                                      .At(ServiceNameHelper.GetServiceEndpoint(c.Implementation)))));

--
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-devel/-/_wNyVkPH9-gJ.
To post to this group, send email to castle-project-devel@....
To unsubscribe from this group, send email to castle-project-devel+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en.

 « Return to Thread: ServiceSecurityContext is null with Castle Windsor WCF Integration Facility