Exemplo n.º 1
0
        public void ToStringGivesExpected()
        {
            var configuration = new ContentStoreConfiguration
                                (
                new MaxSizeQuota("2GB", "1GB"),
                new DiskFreePercentQuota("5", "10")
                                );

            configuration.ToString().Should().Be(
                "MaxSizeQuota=[Hard=[2147483648], Soft=[1073741824], Target=[966367642]], DiskFreePercentQuota=[Hard=[5], Soft=[10], Target=[11]]" +
                ", DenyWriteAttributesOnContent=Disable" +
                ", SingleInstanceTimeoutSeconds=1800");
        }
Exemplo n.º 2
0
        private void ShowConfiguration(ContentStoreConfiguration configuration, bool json)
        {
            var message = $"{(json ? configuration.SerializeToJSON() : configuration.ToString())}";

            _logger.Log(Severity.Always, message);
        }