public Api() { var services = new ServiceCollection(); services.Configure(); var serviceProvider = services.BuildServiceProvider(); _getAllDocumentsUseCase = serviceProvider.GetService <IGetAllDocuments>(); _approveDocumentUseCase = serviceProvider.GetService <IApproveDocument>(); _generatePdfInS3UrlUseCase = serviceProvider.GetService <IGeneratePdfInS3Url>(); _getSingleDocumentInfoUseCase = serviceProvider.GetService <IGetSingleDocumentInfo>(); _cancelDocumentUseCase = serviceProvider.GetService <ICancelDocument>(); _authorizeApi = serviceProvider.GetService <IAuthorizeApi>(); }
public IdentityAuthenticationStateProvider(IAuthorizeApi authorizeApi) { this._authorizeApi = authorizeApi; }
public IdentityAuthenticationStateProvider(IAuthorizeApi authorizeApi, AppState appState) { _authorizeApi = authorizeApi; _appState = appState; }
public AuthenticationState(IAuthorizeApi authorizeApi) { _authorizeApi = authorizeApi; }
public IdentityAuthenticationStateProvider(IAccountManager accountManager, IAuthorizeApi authorizeApi, AppState appState) { _authorizeApi = authorizeApi; _accountManager = accountManager; _appState = appState; }
public DiscordAuthenticationStateProvider(IAuthorizeApi authorizeApi) { _authorizeApi = authorizeApi ?? throw new ArgumentNullException(nameof(authorizeApi)); }
public AuthenticationState(IAuthorizeApi authorizeApi, IJSRuntime jsRuntime) { _authorizeApi = authorizeApi; _jsRuntime = jsRuntime; }
public BlazorAuthenticationState(IAuthorizeApi authorizeApi, ServerAuthenticationStateProvider serverAuthenticationStateProvider) { _authorizeApi = authorizeApi; _serverAuthenticationStateProvider = serverAuthenticationStateProvider; }