public async Task <EndPointsModel> GetEndPointQaNMaker(string username)
        {
            var _list_endPoint = new EndPointsModel();

            using (var _dbContext = new DataBaseContext())
            {
                object[] parameters = new object[] { username };
                var      result     = await _dbContext.ExecuteReaderAsync("sp_GetEndPointByUser", parameters);

                List <EnviromentEndpointModel> endpoint = new List <EnviromentEndpointModel>();
                while (result.Read())
                {
                    endpoint.Add(new EnviromentEndpointModel
                    {
                        environment      = result.GetString(0),
                        qnaAuthKey       = result.GetString(1),
                        qnaKBId          = result.GetString(2),
                        endpointHostName = result.GetString(3),
                        username         = result.GetString(4),
                        password         = result.GetString(5),
                        score            = result[6].ToString()
                    });
                }
                _list_endPoint.endpoints = endpoint;
            }
            return(_list_endPoint);
        }
示例#2
0
 public UpdateSidebarItemsActionHandler(IConfiguration configuration, ISessionStorageService sessionStorageService, ILocalStorageService localStorageService, SweetAlertService sweetAlertService, NavigationManager navigationManager, EndPointsModel endPoints, IHttpClient httpClient, HttpClient baseHttpClient, IJSRuntime jsRuntime, IMediator mediator, IStore store) : base(configuration, sessionStorageService, localStorageService, sweetAlertService, navigationManager, endPoints, httpClient, baseHttpClient, jsRuntime, mediator, store)
 {
     Configuration         = configuration;
     SessionStorageService = sessionStorageService;
     LocalStorageService   = localStorageService;
     SweetAlertService     = sweetAlertService;
     NavigationManager     = navigationManager;
     EndPoints             = endPoints;
     HttpClient            = httpClient;
     BaseHttpClient        = baseHttpClient;
     JsRuntime             = jsRuntime;
     Mediator = mediator;
     Store    = store;
 }
示例#3
0
 protected ActionHandler(IConfiguration configuration, ISessionStorageService sessionStorageService, ILocalStorageService localStorageService, SweetAlertService sweetAlertService,
                         NavigationManager navigationManager, EndPointsModel endPoints, IHttpClient httpClient,
                         HttpClient baseHttpClient, IJSRuntime jsRuntime, IMediator mediator, IStore store)
 {
     Configuration         = configuration;
     SessionStorageService = sessionStorageService;
     LocalStorageService   = localStorageService;
     SweetAlertService     = sweetAlertService;
     NavigationManager     = navigationManager;
     EndPoints             = endPoints;
     HttpClient            = httpClient;
     BaseHttpClient        = baseHttpClient;
     JsRuntime             = jsRuntime;
     Mediator = mediator;
     Store    = store;
 }