AccidentalFish.ApplicationSupport.Logging.QueueLogger.Model.LogTableItem.SetPartitionAndRowKeyForLogBySeverity C# (CSharp) Method

SetPartitionAndRowKeyForLogBySeverity() public method

public SetPartitionAndRowKeyForLogBySeverity ( ) : void
return void
        public void SetPartitionAndRowKeyForLogBySeverity()
        {
            PartitionKey = ((int)(Enum.GetValues(typeof(LogLevelEnum)).Cast<LogLevelEnum>().Max() - Level)).ToString("D2");
            RowKey = $"{DateTimeOffset.MaxValue.Ticks - LoggedAt.Ticks:D19}{Guid.NewGuid()}";
        }