Exemplo n.º 1
0
 public CreateBusinessAdminViewModel(IHttpClient client, IHttpExecutor httpExecutor, IModalService modalService, IToastService toastService)
 {
     _client       = client;
     _httpExecutor = httpExecutor;
     _modalService = modalService;
     _toastService = toastService;
 }
Exemplo n.º 2
0
 public BusinessService(IUserContext context, IHttpExecutor httpExecutor, Endpoints endpoints, HttpClient client)
 {
     _baseBusinessesAddress = endpoints.Gateway + "businesses/";
     client.BaseAddress     = new Uri(_baseBusinessesAddress);
     client.DefaultRequestHeaders.Add("Authorization", $"Bearer {context.Token}");
     Client        = client;
     _httpExecutor = httpExecutor;
 }
Exemplo n.º 3
0
 public AdminAccountService(ILogger <AdminAccountService> logger, IHttpClient client, IToastService toastService, IHttpExecutor executor, Endpoints endpoints)
 {
     _logger         = logger;
     _client         = client;
     _toastService   = toastService;
     _executor       = executor;
     this._endpoints = endpoints;
 }
Exemplo n.º 4
0
 public SiteService(HttpClient client, IHttpExecutor executor, IUserContext context, ILogger <SiteService> logger, Endpoints endpoints)
 {
     _baseAddress       = endpoints.Gateway + "sites/";
     client.BaseAddress = new Uri(_baseAddress);
     client.DefaultRequestHeaders.Add("Authorization", $"Bearer {context.Token}");
     _executor = executor;
     _logger   = logger;
     Client    = client;
 }
Exemplo n.º 5
0
        public Interpreter(Element root, Cursor cursor, string authorization, IHttpExecutor httpExecutor)
        {
            _program      = root;
            _scope        = new Scope();
            _visitStack   = new Stack <QueryPhaseArgs>();
            _httpExecutor = httpExecutor ?? new HttpExecutor(new HttpExecutorRaw(authorization));
            _editorCursor = cursor;
            _selectResult = new List <SelectTable>();

            Errors = new ErrorsCollection();
        }
Exemplo n.º 6
0
        private RunContext(string source, string authorization, Cursor cursor, ExecuteFlags flags, IHttpExecutor semanticHttpExecutor, IHttpExecutor httpExecutor)
        {
            _source = source;
            _flags  = flags;
            _semanticHttpExecutor = semanticHttpExecutor;
            _httpExecutor         = httpExecutor;
            Authorization         = authorization;
            _editorCursor         = cursor;

            Errors = new ErrorsCollection();
        }
Exemplo n.º 7
0
 protected LimitQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
 public InboundFlightInfoQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
 public AirlineFlightScheduleQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
Exemplo n.º 10
0
 public HttpExecutor(IHttpExecutorRaw executor)
 {
     _raw   = executor;
     _empty = new EmptyHttpExecutor();
 }
Exemplo n.º 11
0
 public EnrouteQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
Exemplo n.º 12
0
 public GetHistoricalTrackQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
Exemplo n.º 13
0
 public static RunContext CreateRunContext(string code, IHttpExecutor httpExecutor)
 {
     return(new RunContext(code, string.Empty, new Cursor(), ExecuteFlags.Run, new EmptyHttpExecutor(), httpExecutor));
 }
Exemplo n.º 14
0
 public static RunContext CreateSemanticContext(string code, IHttpExecutor semanticHttpExecutor)
 {
     return(new RunContext(code, string.Empty, new Cursor(), ExecuteFlags.Semantic, semanticHttpExecutor));
 }
 public GetFlightIdQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
Exemplo n.º 16
0
 protected QueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(descriptor)
 {
     HttpExecutor = httpExecutor;
     QueryArgs    = new VariableContainer <QueryArgs>();
 }
 public FlightInfoExQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
Exemplo n.º 18
0
 public ArrivedQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
Exemplo n.º 19
0
 public MapFlightQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
Exemplo n.º 20
0
 public DepartedQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
Exemplo n.º 21
0
 private RunContext(string source, string authorization, Cursor cursor, ExecuteFlags flags, IHttpExecutor semanticHttpExecutor)
     : this(source, authorization, cursor, flags, semanticHttpExecutor, null)
 {
 }
 public AirlineInfoQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }
Exemplo n.º 23
0
 public ScheduledQueryTable(IHttpExecutor httpExecutor, TableDescriptor descriptor) : base(httpExecutor, descriptor)
 {
 }