Exemple #1
0
        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;
 }
Exemple #3
0
 public IdentityAuthenticationStateProvider(IAuthorizeApi authorizeApi, AppState appState)
 {
     _authorizeApi = authorizeApi;
     _appState     = appState;
 }
 public AuthenticationState(IAuthorizeApi authorizeApi)
 {
     _authorizeApi = authorizeApi;
 }
Exemple #5
0
 public IdentityAuthenticationStateProvider(IAccountManager accountManager, IAuthorizeApi authorizeApi, AppState appState)
 {
     _authorizeApi   = authorizeApi;
     _accountManager = accountManager;
     _appState       = appState;
 }
Exemple #6
0
 public DiscordAuthenticationStateProvider(IAuthorizeApi authorizeApi)
 {
     _authorizeApi = authorizeApi ?? throw new ArgumentNullException(nameof(authorizeApi));
 }
Exemple #7
0
 public AuthenticationState(IAuthorizeApi authorizeApi, IJSRuntime jsRuntime)
 {
     _authorizeApi = authorizeApi;
     _jsRuntime    = jsRuntime;
 }
 public BlazorAuthenticationState(IAuthorizeApi authorizeApi,
                                  ServerAuthenticationStateProvider serverAuthenticationStateProvider)
 {
     _authorizeApi = authorizeApi;
     _serverAuthenticationStateProvider = serverAuthenticationStateProvider;
 }