Beispiel #1
0
        public void AddDefinition(Definitions.ServiceSetDefinition setDefinition)
        {
            setDefinition.ServiceId = Id;

            definitions.Add(setDefinition);

            return;
        }
        public ServiceSetDefinition Copy()
        {
            Server.Application.ServiceSetDefinition serverObject = (Server.Application.ServiceSetDefinition)ToServerObject();

            ServiceSetDefinition copiedObject = new ServiceSetDefinition(application, serverObject);

            return(copiedObject);
        }
        public Boolean IsEqual(ServiceSetDefinition compareDefinition)
        {
            Boolean isEqual = true;

            if (this.serviceId != compareDefinition.ServiceId)
            {
                isEqual = false;
            }

            if (this.definitionServiceId != compareDefinition.DefinitionServiceId)
            {
                isEqual = false;
            }

            if (this.enabled != compareDefinition.Enabled)
            {
                isEqual = false;
            }

            return(isEqual);
        }