Exemple #1
0
 public SampleController
 (
     ISharedResource sharedResource,
     ILogger <SampleController> logger,
     ISampleService sampleService
 ) : base(sharedResource)
 {
     _logger        = logger;
     _sampleService = sampleService;
     _sampleService.CheckArgumentIsNull(nameof(_sampleService));
 }
 /// <summary>
 /// This must be used before execution.
 /// </summary>
 /// <param name="resource"></param>
 public void UseLockOnResource(ISharedResource resource)
 {
     if (_isEditable)
     {
         throw new ActivityMachineException("Resource locks must be configured before the machine is in an edit mode.");
     }
     if (resource == null)
     {
         return;
     }
     Resources.Add(resource);
 }
 public MeController(IUserService userService, ILogger <UserController> logger, ISharedResource localizer)
     : base(logger, localizer)
 {
     _userService = userService ?? throw new ArgumentNullException(nameof(userService));
 }
Exemple #4
0
 public UserController(IUserService userService, IConfiguration configuration, ISharedResource sharedResource)
 {
     _userService    = userService;
     _configuration  = configuration;
     _sharedResource = sharedResource;
 }
 public BaseController(ILogger logger, ISharedResource localizer)
 {
     _localizer = localizer;
     _logger    = logger;
 }
Exemple #6
0
 public UserController(IUserService userService, IContactsService contactsService, ILogger <UserController> logger, ISharedResource localizer, IConfiguration configuration)
     : base(logger, localizer)
 {
     _userService    = userService ?? throw new ArgumentNullException(nameof(userService));
     _contactService = contactsService ?? throw new ArgumentNullException(nameof(contactsService));
     _configuration  = configuration;
 }
Exemple #7
0
 public BaseController(ISharedResource sharedResource)
 {
     SharedResource = sharedResource;
 }
Exemple #8
0
 public ContactsController(IContactsService contactService, ILogger <ContactsController> logger, ISharedResource localizer)
     : base(logger, localizer)
 {
     _contactService = contactService ?? throw new ArgumentNullException(nameof(contactService));
 }
Exemple #9
0
 public AddressController(IAddressService addressService, IUserService userService, ILogger <AddressController> logger, ISharedResource localizer)
     : base(logger, localizer)
 {
     _addressService = addressService ?? throw new ArgumentNullException(nameof(addressService));
     _userService    = userService ?? throw new ArgumentNullException(nameof(userService));
 }
Exemple #10
0
 public MessagesController(ISharedResource sharedResource)
 {
     _sharedResource = sharedResource;
 }