Пример #1
0
        internal static void LogObject(HostedServiceProperties hostedServiceProperties)
        {
            if (hostedServiceProperties == null)
                return;

            Console.WriteLine("HostedService Label:{0}", ServiceManagementHelper.DecodeFromBase64String(hostedServiceProperties.Label));
            Console.WriteLine("HostedService Description:{0}", hostedServiceProperties.Description);

            if (!string.IsNullOrEmpty(hostedServiceProperties.AffinityGroup))
            {
                Console.WriteLine("HostedService AffinityGroupName:{0}", hostedServiceProperties.AffinityGroup);
            }

            if (!string.IsNullOrEmpty(hostedServiceProperties.Location))
            {
                Console.WriteLine("HostedService Location:{0}", hostedServiceProperties.Location);
            }
        }
Пример #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));
            }
        }