public RemotingServer(IContextFactory contextFactory, IFormatter formater, IWebServiceCompressor compressor, bool useCompression) { this.contextFactory = contextFactory; this.formater = formater; this.compressor = compressor; this.useCompression = useCompression; }
public static IWebServiceCompressor CreateWebServiceCompressor() { string path = System.Configuration.ConfigurationSettings.AppSettings["CompressorAssembly"]; string className = System.Configuration.ConfigurationSettings.AppSettings["CompressorClass"]; IWebServiceCompressor compressor = null; if (className != null && className.ToLower(CultureInfo.InvariantCulture) == "none") { // } else { if (path != null && className != null && path.Length > 0 && className.Length > 0) { compressor = (IWebServiceCompressor)Assembly.Load(path).CreateInstance(className); } else { compressor = new DefaultWebServiceCompressor(); } } return(compressor); }
public WebServiceRemotingEngine(IFormatter formatter, string url, string domainKey, IWebServiceCompressor compressor) : base(formatter) { this.url = url; this.domainKey = domainKey; this.compressor = compressor; }
public WebServiceRemotingEngine(IFormatter formatter, string url, string domainKey, IWebServiceCompressor compressor, bool useCompression) : base(formatter) { this.url = url; this.domainKey = domainKey; this.compressor = compressor; this.useCompression = useCompression; }