public ResetPasswordRequestHandler( UserManager <User> userManager, IMailingService mailingService, FrontendOptions frontendOptions) { this.userManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); this.mailingService = mailingService ?? throw new ArgumentNullException(nameof(mailingService)); this.frontendOptions = frontendOptions ?? throw new ArgumentNullException(nameof(frontendOptions)); }
/// <summary> /// Run the function with the specified options. /// </summary> /// <param name="frontendOptions"> /// Frontend configuration options. /// </param> /// <param name="storageOptions"> /// Storage configuration options. /// </param> /// <param name="containerName"> /// Name of the blob container. /// </param> /// <param name="path"> /// Path of the blob (including preceding forward slash ("/")). /// </param> private async Task <IActionResult> RunAsync( FrontendOptions frontendOptions, StorageOptions storageOptions, string containerName, string path) { var wrappedFrontendOptions = Options.Create <FrontendOptions>(frontendOptions); var wrappedStorageOptions = Options.Create <StorageOptions>(storageOptions); var function = new Get(wrappedFrontendOptions, wrappedStorageOptions); var req = CreateHttpRequest($"/api/GetStaticFile/{containerName}{path}"); var log = CreateLogger(LoggerTypes.Null); var context = CreateExecutionContext("GetStaticFile"); return(await function.Run(req, containerName, path, log, context)); }
public FrontendController(IOptions <FrontendOptions> options) { _options = options.Value; }