Exemplo n.º 1
0
 public AuthViewModel(IAuthClient authBaseAPI, IBaseTokenService baseTokenService, INavigateWindow navigateWindow, INotificationService notificationService)
 {
     this.navigateWindow      = navigateWindow;
     this.authBaseAPI         = authBaseAPI;
     this.baseTokenService    = baseTokenService;
     this.notificationService = notificationService;
 }
Exemplo n.º 2
0
 public AuthAPIClient(string baseUrl, HttpClient httpClient, IHttpContextAccessor httpContextAccessor, IBaseTokenService tokenService) : base(httpContextAccessor, tokenService)
 {
     this._baseUrl      = baseUrl;
     this._httpClient   = httpClient;
     this.AuthAPIClient = this;
     _settings          = new System.Lazy <Newtonsoft.Json.JsonSerializerSettings>(CreateSerializerSettings);
 }
Exemplo n.º 3
0
 public SeacRuntimeClient(IHttpContextAccessor httpContextAccessor, IBaseTokenService tokenService, IAuthBaseAPIClient authBaseAPIClient, HttpClient httpClient, string url) : base(httpContextAccessor, tokenService)
 {
     this.AuthAPIClient = authBaseAPIClient;
     this._httpClient   = httpClient;
     this._baseUrl      = url;
 }
Exemplo n.º 4
0
 public UserSettingsViewModel(INavigateWindow navigateWindow, IBaseTokenService baseTokenService)
 {
     this.navigateWindow   = navigateWindow;
     this.baseTokenService = baseTokenService;
 }
Exemplo n.º 5
0
 public AuthClient(IHttpContextAccessor httpContextAccessor, IBaseTokenService tokenService, HttpClient httpClient, string url) : base(httpContextAccessor, tokenService)
 {
     this.AuthAPIClient = this;
     this._httpClient   = httpClient;
     this._baseUrl      = url;
 }
Exemplo n.º 6
0
 public ApplicationAPIClient(string baseUrl, HttpClient httpClient, IHttpContextAccessor httpContextAccessor, IBaseTokenService tokenService, IAuthAPIClient authBaseAPI) : base(httpContextAccessor, tokenService)
 {
     this._baseUrl      = baseUrl;
     this._httpClient   = httpClient;
     this.AuthAPIClient = authBaseAPI;
     _settings          = new System.Lazy <Newtonsoft.Json.JsonSerializerSettings>(CreateSerializerSettings);
     _settings.Value.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
 }
Exemplo n.º 7
0
 public BaseAPIClient(IHttpContextAccessor httpContextAccessor, IBaseTokenService tokenService)
 {
     this.httpContextAccessor = httpContextAccessor;
     this.tokenService        = tokenService;
 }
Exemplo n.º 8
0
 public BaseAPIClient()
 {
     this.httpContextAccessor = null;
     this.tokenService        = null;
 }