Example #1
0
        public ReportingServer Copy()
        {
            Server.Application.ReportingServer serverObject = (Server.Application.ReportingServer)ToServerObject();

            ReportingServer copiedObject = new ReportingServer(application, serverObject);

            return(copiedObject);
        }
Example #2
0
        public Boolean IsEqual(ReportingServer compareObject)
        {
            Boolean isEqual = base.IsEqual((Core.CoreConfigurationObject)compareObject);


            isEqual &= (AssemblyPath == compareObject.AssemblyPath);

            isEqual &= (AssemblyName == compareObject.AssemblyName);

            isEqual &= (AssemblyClassName == compareObject.AssemblyClassName);


            if (isEqual)
            {
                isEqual &= (WebServiceHostConfiguration.Server == compareObject.WebServiceHostConfiguration.Server);

                isEqual &= (WebServiceHostConfiguration.Port == compareObject.WebServiceHostConfiguration.Port);

                isEqual &= (WebServiceHostConfiguration.ServicePath == compareObject.WebServiceHostConfiguration.ServicePath);

                isEqual &= (WebServiceHostConfiguration.ServiceName == compareObject.WebServiceHostConfiguration.ServiceName);

                if (isEqual)
                {
                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.BindingName == compareObject.WebServiceHostConfiguration.BindingConfiguration.BindingName);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.BindingType == compareObject.WebServiceHostConfiguration.BindingConfiguration.BindingType);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.BufferPoolSizeMaximum == compareObject.WebServiceHostConfiguration.BindingConfiguration.BufferPoolSizeMaximum);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.BufferSizeMaximum == compareObject.WebServiceHostConfiguration.BindingConfiguration.BufferSizeMaximum);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.MessageCredentialType == compareObject.WebServiceHostConfiguration.BindingConfiguration.MessageCredentialType);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.ProtectionLevel == compareObject.WebServiceHostConfiguration.BindingConfiguration.ProtectionLevel);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.Protocol == compareObject.WebServiceHostConfiguration.BindingConfiguration.Protocol);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.ReaderQuotasArrayLengthMaximum == compareObject.WebServiceHostConfiguration.BindingConfiguration.ReaderQuotasArrayLengthMaximum);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.ReaderQuotasBytesPerReadMaximum == compareObject.WebServiceHostConfiguration.BindingConfiguration.ReaderQuotasBytesPerReadMaximum);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.ReaderQuotasDepthMaximum == compareObject.WebServiceHostConfiguration.BindingConfiguration.ReaderQuotasDepthMaximum);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.ReaderQuotasNameTableCharCountMaximum == compareObject.WebServiceHostConfiguration.BindingConfiguration.ReaderQuotasNameTableCharCountMaximum);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.ReaderQuotasStringContentLengthMaximum == compareObject.WebServiceHostConfiguration.BindingConfiguration.ReaderQuotasStringContentLengthMaximum);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.ReceivedMessageSizeMaximum == compareObject.WebServiceHostConfiguration.BindingConfiguration.ReceivedMessageSizeMaximum);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.SecurityMode == compareObject.WebServiceHostConfiguration.BindingConfiguration.SecurityMode);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.TimeoutClose == compareObject.WebServiceHostConfiguration.BindingConfiguration.TimeoutClose);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.TimeoutOpen == compareObject.WebServiceHostConfiguration.BindingConfiguration.TimeoutOpen);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.TimeoutReceive == compareObject.WebServiceHostConfiguration.BindingConfiguration.TimeoutReceive);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.TimeoutSend == compareObject.WebServiceHostConfiguration.BindingConfiguration.TimeoutSend);

                    isEqual &= (WebServiceHostConfiguration.BindingConfiguration.TransportCredentialType == compareObject.WebServiceHostConfiguration.BindingConfiguration.TransportCredentialType);
                }

                if (isEqual)
                {
                    isEqual &= (WebServiceHostConfiguration.ClientCredentials.UserName == compareObject.WebServiceHostConfiguration.ClientCredentials.UserName);

                    isEqual &= (WebServiceHostConfiguration.ClientCredentials.Password == compareObject.WebServiceHostConfiguration.ClientCredentials.Password);

                    isEqual &= (WebServiceHostConfiguration.ClientCredentials.Domain == compareObject.WebServiceHostConfiguration.ClientCredentials.Domain);

                    isEqual &= (WebServiceHostConfiguration.ClientCredentials.WindowsImpersonationLevel == compareObject.WebServiceHostConfiguration.ClientCredentials.WindowsImpersonationLevel);
                }
            }


            return(isEqual);
        }