Beispiel #1
0
        internal static void LogObject(this TestEasyLog log, DeploymentGetResponse deployment)
        {
            if (deployment == null)
            {
                return;
            }

            log.Info(string.Format("Name:{0}", deployment.Name));
            log.Info(string.Format("Label:{0}", Base64EncodingHelper.DecodeFromBase64String(deployment.Label)));
            log.Info(string.Format("Url:{0}", deployment.Uri));
            log.Info(string.Format("Status:{0}", deployment.Status));
            log.Info(string.Format("DeploymentSlot:{0}", deployment.DeploymentSlot));
            log.Info(string.Format("PrivateID:{0}", deployment.PrivateId));
            log.Info(string.Format("UpgradeDomainCount:{0}", deployment.UpgradeDomainCount));

            LogObject(log, deployment.Roles);
            LogObject(log, deployment.RoleInstances);
            LogObject(log, deployment.UpgradeStatus);
        }
Beispiel #2
0
        internal static void LogObject(this TestEasyLog log, HostedServiceProperties hostedServiceProperties)
        {
            if (hostedServiceProperties == null)
            {
                return;
            }

            log.Info(string.Format("HostedService Label:{0}", Base64EncodingHelper.DecodeFromBase64String(hostedServiceProperties.Label)));
            log.Info(string.Format("HostedService Description:{0}", hostedServiceProperties.Description));

            if (!string.IsNullOrEmpty(hostedServiceProperties.AffinityGroup))
            {
                log.Info(string.Format("HostedService AffinityGroupName:{0}", hostedServiceProperties.AffinityGroup));
            }

            if (!string.IsNullOrEmpty(hostedServiceProperties.Location))
            {
                log.Info(string.Format("HostedService Location:{0}", hostedServiceProperties.Location));
            }
        }