コード例 #1
0
 /// <summary>
 /// Initializes a <see cref="IErrorInfo"/> instance for object not found.
 /// </summary>
 /// <param name="errorInfo">The <see cref="IErrorInfo"/> instance to update.</param>
 /// <param name="argument">The argument name.</param>
 /// <param name="value">The argument value.</param>
 /// <returns>The initialized <see cref="IErrorInfo"/> instance.</returns>
 public static IErrorInfo NotFound(this IErrorInfo errorInfo, string argument, IUuidSource value) => errorInfo.NotFound(argument, value?.Uuid);
コード例 #2
0
 /// <summary>
 /// Initializes a <see cref="IErrorInfo"/> instance for object not found.
 /// </summary>
 /// <param name="errorInfo">The <see cref="IErrorInfo"/> instance to update.</param>
 /// <param name="argument">The argument name.</param>
 /// <param name="value">The argument value.</param>
 /// <returns>The initialized <see cref="IErrorInfo"/> instance.</returns>
 public static IErrorInfo NotFound(this IErrorInfo errorInfo, string argument, IRequestUuidSource value)
 {
     return(errorInfo.NotFound(argument, value?.RequestUuid));
 }
コード例 #3
0
 /// <summary>
 /// Initializes a <see cref="IErrorInfo"/> instance for object not found.
 /// </summary>
 /// <param name="errorInfo">The <see cref="IErrorInfo"/> instance to update.</param>
 /// <param name="value">The argument value.</param>
 /// <returns>The initialized <see cref="IErrorInfo"/> instance.</returns>
 public static IErrorInfo NotFound(this IErrorInfo errorInfo, IRequestUuidSource value) => errorInfo.NotFound(value?.RequestUuid);