Пример #1
0
		public override void Start()
		{
			DeserializationFilter deserializationFilter = new DeserializationFilter();
			deserializationFilter.UseLegacyCollection = this.IsLegacyCollection;
			ServiceMapFilter serviceMapFilter = new ServiceMapFilter(this);
			WsdlFilter wsdlFilter = new WsdlFilter();
            ContextFilter contextFilter = new ContextFilter(this);
            AuthenticationFilter authenticationFilter = new AuthenticationFilter(this);
            DescribeServiceFilter describeServiceFilter = new DescribeServiceFilter();
			//CacheFilter cacheFilter = new CacheFilter();
			ProcessFilter processFilter = new ProcessFilter(this);
			MessageFilter messageFilter = new MessageFilter(this);
			DebugFilter debugFilter = new DebugFilter();
			SerializationFilter serializationFilter = new SerializationFilter();
			serializationFilter.UseLegacyCollection = this.IsLegacyCollection;
            serializationFilter.UseLegacyThrowable = this.IsLegacyThrowable;
			
			deserializationFilter.Next = serviceMapFilter;
			serviceMapFilter.Next = wsdlFilter;
            wsdlFilter.Next = contextFilter;
            contextFilter.Next = authenticationFilter;
            authenticationFilter.Next = describeServiceFilter;
            describeServiceFilter.Next = processFilter;
            //describeServiceFilter.Next = cacheFilter;
			//cacheFilter.Next = processFilter;
			processFilter.Next = debugFilter;
			debugFilter.Next = messageFilter;
			messageFilter.Next = serializationFilter;

			_filterChain = new FilterChain(deserializationFilter);
		}
Пример #2
0
		public override void Stop()
		{
			_filterChain = null;
			base.Stop();
		}