コード例 #1
0
ファイル: LogBuilder.cs プロジェクト: dmaulikr/narivia
        /// <summary>
        /// Builds a log message based on key-value pairs.
        /// </summary>
        /// <param name="operation">The operation.</param>
        /// <param name="status">The status of the operation.</param>
        /// <returns>The log message.</returns>
        public static string BuildKvpMessage(Operation operation, OperationStatus status)
        {
            string message = $"Operation={operation.GetDisplayName()}," +
                             $"OperationStatus={status.GetDisplayName()}";

            return(message);
        }