Re: WCF service which is being resolved using UsingFactoryMethod seems not to work.

2013-07-26 Thread Jakub Fojtl
https://github.com/castleproject/Windsor/pull/29

On Thursday, July 25, 2013 5:16:56 PM UTC+2, Craig Neuwirt wrote:

 I've never tried it, but it apparently doesn't work.  We need a unit test 
 to demonstrate issue.


 On Tue, Jul 23, 2013 at 5:59 PM, Krzysztof Koźmic 
 krzyszto...@gmail.comjavascript:
  wrote:

 I don't think that works

 Craig?

 Krzysztof

 sent from my phone
 On 24/07/2013 8:36 AM, Jakub Fojtl jfo...@gmail.com javascript: 
 wrote:

 Well, my service implementation is a proxy class implemented by 
 DynamicProxy. May that work?

 On Tuesday, July 23, 2013 2:19:31 PM UTC+2, Krzysztof Koźmic wrote:

 the WCF facility doesn't appear to support UsingFactoryMethod in this 
 context. Can you set .ImplementedBy()? Does that help?

 -- 
 Krzysztof Kozmic

 On Monday, 22 July 2013 at 10:51 PM, Jakub Fojtl wrote:

 I am doing something like:

 Component.ForIScanProvider()
 .UsingFactoryM**ethod((k, c) =
 {
 var factor**y = new 
 CommunicatorBridgeFact**oryIScanService, IScanProvide**r();
 var servic**e = k.ResolveIScanService();
 return fac**tory.Get(service);
 })
 .Named(typeof(**IScanProvider).FullName)
 .AsWcfService(**new DefaultServiceModel()
 .AddEndpoi**nts(WcfEndpoint.BoundTo(new 
 Ne**tNamedPipeBinding())
 
 .At(St**ring.Concat(WcfCommonBehaviorI**nstaller.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 castle-project-users+**unsubscr...@googlegroups.com.
 To post to this group, send email to castle-pro...@**googlegroups.com.
 Visit this group at http://groups.google.com/**
 group/castle-project-usershttp://groups.google.com/group/castle-project-users
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  
  
  
   -- 
 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 castle-project-users+unsubscr...@googlegroups.comjavascript:
 .
 To post to this group, send email to 
 castle-pro...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/castle-project-users.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

  -- 
 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 castle-project-users+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to 
 castle-pro...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/castle-project-users.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
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 castle-project-users+unsubscr...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: WCF service which is being resolved using UsingFactoryMethod seems not to work.

2013-07-25 Thread Craig Neuwirt
I've never tried it, but it apparently doesn't work.  We need a unit test
to demonstrate issue.


On Tue, Jul 23, 2013 at 5:59 PM, Krzysztof Koźmic 
krzysztof.koz...@gmail.com wrote:

 I don't think that works

 Craig?

 Krzysztof

 sent from my phone
 On 24/07/2013 8:36 AM, Jakub Fojtl jfo...@gmail.com wrote:

 Well, my service implementation is a proxy class implemented by
 DynamicProxy. May that work?

 On Tuesday, July 23, 2013 2:19:31 PM UTC+2, Krzysztof Koźmic wrote:

 the WCF facility doesn't appear to support UsingFactoryMethod in this
 context. Can you set .ImplementedBy()? Does that help?

 --
 Krzysztof Kozmic

 On Monday, 22 July 2013 at 10:51 PM, Jakub Fojtl wrote:

 I am doing something like:

 Component.ForIScanProvider()
 .UsingFactoryM**ethod((k, c) =
 {
 var factor**y = new 
 CommunicatorBridgeFact**oryIScanService, IScanProvide**r();
 var servic**e = k.ResolveIScanService();
 return fac**tory.Get(service);
 })
 .Named(typeof(**IScanProvider).FullName)
 .AsWcfService(**new DefaultServiceModel()
 .AddEndpoi**nts(WcfEndpoint.BoundTo(new 
 Ne**tNamedPipeBinding())
 
 .At(St**ring.Concat(WcfCommonBehaviorI**nstaller.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 castle-project-users+**unsubscr...@googlegroups.com.
 To post to this group, send email to castle-pro...@**googlegroups.com.
 Visit this group at http://groups.google.com/**
 group/castle-project-usershttp://groups.google.com/group/castle-project-users
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




   --
 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 castle-project-users+unsubscr...@googlegroups.com.
 To post to this group, send email to
 castle-project-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/castle-project-users.
 For more options, visit https://groups.google.com/groups/opt_out.



  --
 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 castle-project-users+unsubscr...@googlegroups.com.
 To post to this group, send email to castle-project-users@googlegroups.com
 .
 Visit this group at http://groups.google.com/group/castle-project-users.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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 castle-project-users+unsubscr...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: WCF service which is being resolved using UsingFactoryMethod seems not to work.

2013-07-23 Thread Krzysztof Kozmic
the WCF facility doesn't appear to support UsingFactoryMethod in this context. 
Can you set .ImplementedBy()? Does that help?

-- 
Krzysztof Kozmic


On Monday, 22 July 2013 at 10:51 PM, Jakub Fojtl wrote:

 I am doing something like:
 
 Component.ForIScanProvider() .UsingFactoryMethod((k, c) =  
{ var factory = new 
 CommunicatorBridgeFactoryIScanService, IScanProvider(); 
 var service = k.ResolveIScanService(); 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 castle-project-users+unsubscr...@googlegroups.com 
 (mailto:castle-project-users+unsubscr...@googlegroups.com).
 To post to this group, send email to castle-project-users@googlegroups.com 
 (mailto:castle-project-users@googlegroups.com).
 Visit this group at http://groups.google.com/group/castle-project-users.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
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 castle-project-users+unsubscr...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: WCF service which is being resolved using UsingFactoryMethod seems not to work.

2013-07-23 Thread Jakub Fojtl
Well, my service implementation is a proxy class implemented by 
DynamicProxy. May that work?

On Tuesday, July 23, 2013 2:19:31 PM UTC+2, Krzysztof Koźmic wrote:

 the WCF facility doesn't appear to support UsingFactoryMethod in this 
 context. Can you set .ImplementedBy()? Does that help?

 -- 
 Krzysztof Kozmic

 On Monday, 22 July 2013 at 10:51 PM, Jakub Fojtl wrote:

 I am doing something like:

 Component.ForIScanProvider()
 .UsingFactoryMethod((k, c) =
 {
 var factory = new CommunicatorBridgeFactoryIScanService, 
 IScanProvider();
 var service = k.ResolveIScanService();
 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 castle-project-users+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to 
 castle-pro...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/castle-project-users.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  
  
  
 

-- 
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 castle-project-users+unsubscr...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: WCF service which is being resolved using UsingFactoryMethod seems not to work.

2013-07-23 Thread Krzysztof Koźmic
I don't think that works

Craig?

Krzysztof

sent from my phone
On 24/07/2013 8:36 AM, Jakub Fojtl jfo...@gmail.com wrote:

 Well, my service implementation is a proxy class implemented by
 DynamicProxy. May that work?

 On Tuesday, July 23, 2013 2:19:31 PM UTC+2, Krzysztof Koźmic wrote:

 the WCF facility doesn't appear to support UsingFactoryMethod in this
 context. Can you set .ImplementedBy()? Does that help?

 --
 Krzysztof Kozmic

 On Monday, 22 July 2013 at 10:51 PM, Jakub Fojtl wrote:

 I am doing something like:

 Component.ForIScanProvider()
 .UsingFactoryM**ethod((k, c) =
 {
 var factor**y = new 
 CommunicatorBridgeFact**oryIScanService, IScanProvide**r();
 var servic**e = k.ResolveIScanService();
 return fac**tory.Get(service);
 })
 .Named(typeof(**IScanProvider).FullName)
 .AsWcfService(**new DefaultServiceModel()
 .AddEndpoi**nts(WcfEndpoint.BoundTo(new 
 Ne**tNamedPipeBinding())
 
 .At(St**ring.Concat(WcfCommonBehaviorI**nstaller.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 castle-project-users+**unsubscr...@googlegroups.com.
 To post to this group, send email to castle-pro...@**googlegroups.com.
 Visit this group at 
 http://groups.google.com/**group/castle-project-usershttp://groups.google.com/group/castle-project-users
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




   --
 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 castle-project-users+unsubscr...@googlegroups.com.
 To post to this group, send email to castle-project-users@googlegroups.com
 .
 Visit this group at http://groups.google.com/group/castle-project-users.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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 castle-project-users+unsubscr...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/groups/opt_out.