Re: Wcf Facility and debugging services in Visual Studio

51 views
Skip to first unread message

Craig Neuwirt

unread,
Dec 9, 2012, 9:06:23 AM12/9/12
to castle-pro...@googlegroups.com
When you add a Service Reference VS creates a proxy class which can be debugged.  However, WCF facility just uses Channel Factories directly which are pare of the framework

Sent from my iPhone

On Dec 8, 2012, at 8:03 AM, Nicolás Sabena <nsa...@gmail.com> wrote:

Hi. I have a question about the Wcf Integration Facility.
 
I have a simple Visual Studio solution with 2 projects:
- a WCF Service Application (just the simple service the template makes, no WCF Facility or Castle)
- a client project (a test unit project in this case)
 
In the client project I add a service reference (Add Service Reference...) and try this:
 
            var service = new ServiceReference1.Service1Client();
            service.GetData(3);
 
I can start the client debugging and when I reach the call to the service I can step into (F11) the service code.
 
However, if I use the Wcf Integration Facility on the client side:
 
            var container = new WindsorContainer()
                .AddFacility<WcfFacility>()
                .Register(Component.For<ServiceReference1.IService1>()
                              .AsWcfClient(DefaultClientModel.On(WcfEndpoint.FromConfiguration("BasicHttpBinding_IService1")))
                );
 
            var service = container.Resolve<ServiceReference1.IService1>();
            service.GetData(3);
 
If I try to step into the call to the service (F11 when I hit the "service.GetData(3)" line), it just steps over (advances to the next line).
 
Am I doing something wrong, or this is the only possible behavior?
 
Thanks,
Nicolas
 

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

Nicolás Sabena

unread,
Dec 9, 2012, 12:08:42 PM12/9/12
to castle-pro...@googlegroups.com
Thanks for the response, Craig.
It's normally no problem, since breakpoints in the service are honored just fine when debugging, I was just curious if it was me doing something wrong.
Reply all
Reply to author
Forward
0 new messages