public RegisterViewModel(IThemeControl themeControl, IApiConsumer apiConsumer) : base(themeControl) { Model = new SignUpModel(); _apiConsumer = apiConsumer; SubmitCmd = BuildCommand(SubmitAsync); }
public SignUpFlowViewModel(IApiConsumer apiConsumer, IThemeControl themeControl) { Inputs = new ObservableCollection <SignUpInputContext> { BuildEmailContext() }; _apiConsumer = apiConsumer; _themeControl = themeControl; }
/// <inheritdoc /> public void Add <TKey, TValue>([NotNull] IIngressApi api, [NotNull] IApiConsumer <TKey, TValue> consumer) { if (api == null) { throw new ArgumentNullException(nameof(api)); } if (consumer == null) { throw new ArgumentNullException(nameof(consumer)); } if (!_consumers.TryAdd(api, consumer)) { throw new PoezdConfigurationException($"An ingress API with ID '{api.Id}' and its consumer already registered."); } }
static void Main(string[] args) { string url = ConfigurationManager.AppSettings["ApiURL"]; string consumerType = ConfigurationManager.AppSettings["ConsumerType"].ToLower(); IApiConsumer consumer = null; if (consumerType == "console") { consumer = new ConsoleConsumer(); } else if (consumerType == "Database") { consumer = new DBConsumer(); } ApiClient client = new ApiClient(url, consumer); client.CallApi(); }
public ApiClient(string apiURL, IApiConsumer consumer) { _apiURL = apiURL; _consumer = consumer; }
public ProjectsConsumer(IApiConsumer api) { this.api = api; }
public ProjectsConsumer(HttpClient http, IJSRuntime js) { api = new Consumer(http, js); }
public ResultController(IApiConsumer dopplerStore) { _dopplerStore = dopplerStore; }
public LocationRepo(IApiConsumer apiConsumer) { _apiConsumer = apiConsumer; }
public LocationController(IApiConsumer apiConsumer) { _apiConsumer = apiConsumer; }
public LocationRepoTests() { _apiConsumer = new ApiConsumer(BaseUrl); _locationRepo = new LocationRepo(_apiConsumer); }
public JwtAuthorizeAttribute() { _apiConsumer = new ApiConsumer(); }
public UsersConsumer(IApiConsumer api, NavigationManager navManager) { this.api = api; this.navManager = navManager; }
public UsersConsumer(HttpClient http, IJSRuntime js, NavigationManager navManager) { api = new Consumer(http, js); this.navManager = navManager; }