public bool IsSameConsumer(IAppConfigConsumer consumer) { RemotingHost rh = consumer as RemotingHost; if (rh != null) { return(string.Compare(rh.ServiceName, this.ServiceName, StringComparison.OrdinalIgnoreCase) == 0); } return(false); }
public bool IsSameConsumer(IAppConfigConsumer consumer) { WcfServiceProxy wcf = consumer as WcfServiceProxy; if (wcf != null) { if (string.Compare(Path.GetFileName(ProxyDllFile), Path.GetFileName(wcf.ProxyDllFile), StringComparison.OrdinalIgnoreCase) == 0) { return(true); } } return(false); }