예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActivityController"/> class.
 /// </summary>
 /// <param name="logger">The logger used to write diagnostic information.</param>
 /// <param name="activityFacade">The store to retrieve the user from.</param>
 /// <exception cref="ArgumentNullException">The <paramref name="logger"/> is <see langword="null"/>.</exception>
 /// <exception cref="ArgumentNullException">The data <paramref name="activityFacade"/> is <see langword="null"/>.</exception>
 public ActivityController(IActivityFacade activityFacade, ILogger <ActivityController> logger, IContextPersonStore contextPersonStore)
 {
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _activityFacade     = activityFacade ?? throw new ArgumentNullException(nameof(activityFacade));
     _contextPersonStore = contextPersonStore ?? throw new ArgumentNullException(nameof(contextPersonStore));
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the<see cref="PeopleController"/> class.
 /// </summary>
 /// <param name = "logger" > The logger used to write diagnostic information.</param>
 /// <param name = "contextPersonStore" > The store to retrieve the user from.</param>
 /// <exception cref = "ArgumentNullException" > The < paramref name= "logger" /> is < see langword= "null" />.</ exception >
 /// < exception cref= "ArgumentNullException" > The data<paramref name="contextPersonStore"/> is <see langword = "null" />.</ exception >
 public PeopleController(ILogger <PeopleController> logger, IContextPersonStore contextPersonStore)
 {
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _contextPersonStore = contextPersonStore ?? throw new ArgumentNullException(nameof(contextPersonStore));
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProcessController"/> class.
 /// </summary>
 /// <param name="logger">The logger used to write diagnostic information.</param>
 /// <param name="processFacade">The store to retrieve the user from.</param>
 /// <exception cref="ArgumentNullException">The <paramref name="logger"/> is <see langword="null"/>.</exception>
 /// <exception cref="ArgumentNullException">The data <paramref name="processFacade"/> is <see langword="null"/>.</exception>
 public ProcessController(IProcessFacade processFacade, ILogger <ProcessController> logger, IContextPersonStore contextPersonStore)
 {
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _processFacade      = processFacade ?? throw new ArgumentNullException(nameof(processFacade));
     _contextPersonStore = contextPersonStore ?? throw new ArgumentNullException(nameof(contextPersonStore));
 }