コード例 #1
0
        }     //GetOptions()

        private static IServerChannelSinkProvider GetProviderChain()
        {
            IServerChannelSinkProvider      chain        = new System.Runtime.Remoting.MetadataServices.SdlChannelSinkProvider();
            IServerChannelSinkProvider      sink         = chain;
            SoapServerFormatterSinkProvider soapProvider = new SoapServerFormatterSinkProvider();

            soapProvider.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
            sink.Next = soapProvider;
            sink      = sink.Next;
            BinaryServerFormatterSinkProvider binaryProvider = new BinaryServerFormatterSinkProvider();

            binaryProvider.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
            sink.Next = binaryProvider;
            return(chain);
        }
コード例 #2
0
    }//GetOptions()

    private static IServerChannelSinkProvider GetProviderChain() {
        IServerChannelSinkProvider chain = new System.Runtime.Remoting.MetadataServices.SdlChannelSinkProvider();            
        IServerChannelSinkProvider sink = chain;
        SoapServerFormatterSinkProvider soapProvider = new SoapServerFormatterSinkProvider();
        soapProvider.TypeFilterLevel =  System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
        sink.Next = soapProvider;                    
        sink = sink.Next;
        BinaryServerFormatterSinkProvider binaryProvider = new BinaryServerFormatterSinkProvider();
        binaryProvider.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
        sink.Next = binaryProvider;     
        return chain;
    }