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)); }
public UserController(IUserService userService, IConfiguration configuration, ISharedResource sharedResource) { _userService = userService; _configuration = configuration; _sharedResource = sharedResource; }
public BaseController(ILogger logger, ISharedResource localizer) { _localizer = localizer; _logger = logger; }
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; }
public BaseController(ISharedResource sharedResource) { SharedResource = sharedResource; }
public ContactsController(IContactsService contactService, ILogger <ContactsController> logger, ISharedResource localizer) : base(logger, localizer) { _contactService = contactService ?? throw new ArgumentNullException(nameof(contactService)); }
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)); }
public MessagesController(ISharedResource sharedResource) { _sharedResource = sharedResource; }