コード例 #1
0
ファイル: BaseService.cs プロジェクト: sgflores/EFCoreRESTAPI
        public BaseService(TokenAuthenticationStateProvider tokenAuthenticationStateProvider)
        {
            _tokenAuthenticationStateProvider = tokenAuthenticationStateProvider;

            ApiClient             = new HttpClient();
            ApiClient.BaseAddress = new Uri("http://localhost:5001/api/");
            ApiClient.DefaultRequestHeaders.Accept.Clear();
            ApiClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
        }
コード例 #2
0
 public CategoryService(TokenAuthenticationStateProvider tokenAuthenticationStateProvider)
     : base(tokenAuthenticationStateProvider)
 {
 }
コード例 #3
0
 public UserInfoService(TokenAuthenticationStateProvider tokenAuthenticationStateProvider)
     : base(tokenAuthenticationStateProvider)
 {
 }
コード例 #4
0
 // register service as addScoped @Startup.cs
 // scoped means
 public ProductService(TokenAuthenticationStateProvider tokenAuthenticationStateProvider)
     : base(tokenAuthenticationStateProvider)
 {
 }