Пример #1
0
        public new ServiceSet Copy()
        {
            Server.Application.ServiceSet serverServiceSet = (Server.Application.ServiceSet)ToServerObject();

            ServiceSet copiedServiceSet = new ServiceSet(application, serverServiceSet);

            return(copiedServiceSet);
        }
Пример #2
0
        public Boolean IsEqual(ServiceSet compareService)
        {
            Boolean isEqual = base.IsEqual(compareService);

            isEqual = isEqual && (this.definitions.Count == compareService.Definitions.Count);

            if (isEqual)
            {
                for (Int32 currentDefinition = 0; currentDefinition < definitions.Count; currentDefinition++)
                {
                    isEqual = isEqual && (this.definitions[currentDefinition].IsEqual(compareService.Definitions[currentDefinition]));

                    if (!isEqual)
                    {
                        break;
                    }
                }
            }

            return(isEqual);
        }