public bool RemotingWrapperExist() { foreach (var w in WrapperFactory.GetPepository()) { if (w.Value.GetType().Name == typeof(RemotingWrapper).Name) { RemotingWrapper rw = (RemotingWrapper)w.Value; if (rw.RemotingUrl == this.remotingUrl) { return(true); } } } return(false); }