This project has moved. For the latest updates, please go here.

Interception

Apr 12, 2012 at 12:08 PM

hi

i have configured interception in the container

IUnityContainer container = new UnityContainer();
                container.AddNewExtension<Interception>();
                container.RegisterType<IService1Service1>(
                         new Interceptor<TransparentProxyInterceptor>(),
                         new InterceptionBehavior<InterceptBehavior>());
 
host1 = new UnityServiceHost(container, typeof(Service1), baseAddress);
also in the config file i have auth behavior
<behaviors>
            <serviceBehaviors>
                <behavior name="NewBehavior0">
                    <serviceMetadata/>
                    <serviceAuthorization serviceAuthorizationManagerType="ClassLibrary1.AuthProvider, ClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
                </behavior>
            </serviceBehaviors>
        </behaviors>
        <bindings>
            <mexTcpBinding>
                <binding name="mextTcp"/>
            </mexTcpBinding>
        </bindings>
        <services>
            <service behaviorConfiguration="NewBehavior0" name="ClassLibrary1.Service1">
                <endpoint address="service1" binding="netTcpBinding" bindingConfiguration="" name="Service1_netTcp" contract="ClassLibrary1.IService1"/>
                <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="mextTcp" name="Service1_metadat" contract="IMetadataExchange"/>
                <host>
                    <baseAddresses>
                        <add baseAddress="net.tcp://localhost:2020"/>
                    </baseAddresses>
                </host>
            </service>
        </services>

and the interception dont work
Dec 18, 2012 at 5:33 PM

I'm experiencing the problem too, do you have any idea of how to resolve this?