Ejemplo n.º 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);
Ejemplo n.º 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));
 }
Ejemplo n.º 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);