} //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); }
}//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; }