Castle.Facilities.WcfIntegration.Proxy.WcfProxyFactory.GetInterfaces C# (CSharp) Method

GetInterfaces() protected method

protected GetInterfaces ( IEnumerable services, ProxyOptions proxyOptions, bool isDuplex ) : System.Type[]
services IEnumerable
proxyOptions Castle.MicroKernel.Proxy.ProxyOptions
isDuplex bool
return System.Type[]
		protected virtual Type[] GetInterfaces(IEnumerable<Type> services, ProxyOptions proxyOptions, bool isDuplex)
		{
			var interfaces = services.ToList();
			if (proxyOptions.AdditionalInterfaces != null)
			{
				interfaces.AddRange(proxyOptions.AdditionalInterfaces);
			}
			interfaces.Add(typeof(IServiceChannel));
			interfaces.Add(typeof(IClientChannel));

			if (isDuplex)
			{
				interfaces.Add(typeof(IDuplexContextChannel));
			}
			return interfaces.ToArray();
		}