Exemplo n.º 1
0
 /// <summary>
 /// Registers command authentication pipeline behavior.
 /// </summary>
 /// <exception cref="ArgumentNullException">Argument <paramref name="facility"/> is <c>null</c>.</exception>
 public static CommandModelFacility UseAuthentication(this CommandModelFacility facility)
 {
     Ensure.Arg.NotNull(facility, nameof(facility));
     facility.AddExtension <AuthenticatedCommandFacilityExtension>();
     return(facility);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds logging of events to the pipeline.
 /// </summary>
 /// <exception cref="ArgumentNullException">Argument <paramref name="facility"/> is <c>null</c>.</exception>
 public static CommandModelFacility UseLogging(this CommandModelFacility facility)
 {
     Ensure.Arg.NotNull(facility, nameof(facility));
     facility.AddExtension <LoggingCommandModelFacilityExtension>();
     return(facility);
 }
 /// <summary>
 /// Registers command validation pipeline behavior.
 /// </summary>
 /// <exception cref="ArgumentNullException">Argument <paramref name="facility"/> is <c>null</c>.</exception>
 public static CommandModelFacility UseValidation(this CommandModelFacility facility)
 {
     Ensure.Arg.NotNull(facility, nameof(facility));
     facility.AddExtension <ValidationCommandModelFacilityExtension>();
     return(facility);
 }