.net 仅基于WCF服务接口的Castle Windsor WCF设施主机?
我已提供运行时WCF SERVICE接口:.net 仅基于WCF服务接口的Castle Windsor WCF设施主机?,.net,wcf,castle-windsor,.net,Wcf,Castle Windsor,我已提供运行时WCF SERVICE接口: [ServiceContract] public interface IHelloService { [OperationContract] string SayHello(string message); } 我想用我的Windsor容器做什么(每个提供的服务接口一次): 如您所见,不会提供任何实现 拦截机: class HelloServiceInterceptor: Castle.
[ServiceContract]
public interface IHelloService {
[OperationContract]
string SayHello(string message);
}
我想用我的Windsor容器做什么(每个提供的服务接口一次):
如您所见,不会提供任何实现
拦截机:
class HelloServiceInterceptor: Castle.Core.Interceptor.IInterceptor {
public void Intercept(Castle.Core.Interceptor.IInvocation invocation)
{
// Do what I must to answer the call
}
}
温莎WCF设施“原样”是否可能实现这一点?温莎WCF设施“原样”是否有办法实现这一点 也许我可以提供所提供服务接口的一个虚拟实现,您会怎么做 请不要问为什么;)
如果我在别处得到答案,我会让你知道。好吧,我们正在研究@Google Groups的“城堡项目用户”。当涉及到解决方案时,我会让您知道:)在深入研究这一点并玩弄我们开发的解决方案之后,我们决定实现此功能,但不是在v1.0中。我们需要在温莎做一些改变,以支持一般情况下的这一点。
class HelloServiceInterceptor: Castle.Core.Interceptor.IInterceptor {
public void Intercept(Castle.Core.Interceptor.IInvocation invocation)
{
// Do what I must to answer the call
}
}