public AuthorizedService Copy()
        {
            Server.Application.AuthorizedService serverAuthorizedService = (Server.Application.AuthorizedService)ToServerObject();

            AuthorizedService copiedAuthorizedService = new AuthorizedService(application, serverAuthorizedService);

            return(copiedAuthorizedService);
        }
        public Boolean IsEqual(AuthorizedService compareAuthorizedService)
        {
            Boolean isEqual = base.IsEqual(compareAuthorizedService);


            isEqual = isEqual && (definitions.Count == compareAuthorizedService.Definitions.Count);

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

                    if (!isEqual)
                    {
                        break;
                    }
                }
            }

            return(isEqual);
        }