// // Summary: // Initializes a new instance of the PSSeriviceProperties class from old XSCL service properties. public PSSeriviceProperties(XTable.ServiceProperties properties) { if (properties != null) { this.Logging = new LoggingProperties() { Version = properties.Logging.Version, RetentionDays = properties.Logging.RetentionDays, LoggingOperations = (LoggingOperations)Enum.Parse(typeof(LoggingOperations), properties.Logging.LoggingOperations.ToString(), true), }; this.HourMetrics = new MetricsProperties() { Version = properties.HourMetrics.Version, RetentionDays = properties.HourMetrics.RetentionDays, MetricsLevel = (MetricsLevel)Enum.Parse(typeof(MetricsLevel), properties.HourMetrics.MetricsLevel.ToString(), true), }; this.MinuteMetrics = new MetricsProperties() { Version = properties.MinuteMetrics.Version, RetentionDays = properties.MinuteMetrics.RetentionDays, MetricsLevel = (MetricsLevel)Enum.Parse(typeof(MetricsLevel), properties.MinuteMetrics.MetricsLevel.ToString(), true), }; this.DefaultServiceVersion = properties.DefaultServiceVersion; this.Cors = PSCorsRule.ParseCorsRules(properties.Cors); } }
// // Summary: // Initializes a new instance of the PSSeriviceProperties class from track 2 service properties. public PSSeriviceProperties(TableServiceProperties properties) { if (properties != null) { this.Logging = PSSeriviceProperties.ConvertLoggingProperties(properties.Logging); this.HourMetrics = PSSeriviceProperties.ConvertMetricsProperties(properties.HourMetrics); this.MinuteMetrics = PSSeriviceProperties.ConvertMetricsProperties(properties.MinuteMetrics); this.DefaultServiceVersion = string.Empty; this.Cors = PSCorsRule.ParseCorsRules(properties.Cors); } }
// // Summary: // Initializes a new instance of the PSSeriviceProperties class. public PSSeriviceProperties(ServiceProperties properties) { if (properties != null) { this.Logging = properties.Logging; this.HourMetrics = properties.HourMetrics; this.MinuteMetrics = properties.MinuteMetrics; this.DefaultServiceVersion = properties.DefaultServiceVersion; this.Cors = PSCorsRule.ParseCorsRules(properties.Cors); } }
// // Summary: // Initializes a new instance of the PSSeriviceProperties class. public PSSeriviceProperties(ServiceProperties properties) { if (properties != null) { this.Logging = properties.Logging; this.HourMetrics = properties.HourMetrics; this.MinuteMetrics = properties.MinuteMetrics; this.DefaultServiceVersion = properties.DefaultServiceVersion; this.Cors = PSCorsRule.ParseCorsRules(properties.Cors); this.DeleteRetentionPolicy = PSDeleteRetentionPolicy.ParsePSDeleteRetentionPolicy(properties.DeleteRetentionPolicy); this.StaticWebsite = PSStaticWebsiteProperties.ParsePSStaticWebsiteProperties(properties.StaticWebsite); } }