Search code examples
c#moryx

How do I register a WFC host factory in a MORYX module?


The ProductManagement and ResourceManagement use the following command to do that

Container.RegisterWcf(WcfHostFactory);

But when I try to do that in my custom module, I get the following error message:

CS1061 'IContainer' does not contain a definition for 'RegisterWcf' and no accessible extension method 'RegisterWcf' accepting a first argument of type 'IContainer' could be found (are you missing a using directive or an assembly reference?)

Am I missing an assembly reference? And if that's the case: Which one am I missing?


Solution

  • In preparation for cross-platform we extracted WCF to an isolated package Moryx.Runtime.Wcf. That also contains the container extension.