I am doing something like:

Component.For<IScanProvider>()
                .UsingFactoryMethod((k, c) =>
                {
                    var factory = new CommunicatorBridgeFactory<IScanService, 
IScanProvider>();
                    var service = k.Resolve<IScanService>();
                    return factory.Get(service);
                })
                .Named(typeof(IScanProvider).FullName)
                .AsWcfService(new DefaultServiceModel()
                    .AddEndpoints(WcfEndpoint.BoundTo(new NetNamedPipeBinding())
                        
.At(String.Concat(WcfCommonBehaviorInstaller.NamedPipeBaseAddress, "Scan"))))



the body of UsingFactoryMethod is not very important. Important is the fact 
that I am resolving the desired service using factory outside of CW and WCF 
facility has problem with it. I am getting this exception:

*"The contract name 'TerminalServer.Contracts.Scans.IScanProvider' could 
not be found in the list of contracts implemented by the service 
'Castle.Core.Internal.LateBoundComponent'."*
*
*
Any ideas why? Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to