/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='isoCode'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> Get1Async(this ICountries operations, string isoCode, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.Get1WithHttpMessagesAsync(isoCode, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// Reference to the ZtherApiIntegration.API.ICountries. /// </param> /// <param name='code'> /// Required. /// </param> public static Country GetByCountry(this ICountries operations, string code) { return(Task.Factory.StartNew((object s) => { return ((ICountries)s).GetByCountryAsync(code); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
public CountriesController(ICountries countriesService, IConfiguration configuration, IFileProvider fileProvider, IHostingEnvironment environment) { _countriesService = countriesService; _configuration = configuration; _fileProvider = fileProvider; _environment = environment; }
public ManagersController(IManager managerService, IConfiguration configuration, IUpload uploadService, ICountries countriesService, IHostingEnvironment environment, ApplicationDbContext db) { _managerService = managerService; _countriesService = countriesService; _configuration = configuration; _uploadService = uploadService; _environment = environment; _db = db; }
public PlayersController(IPlayer playerService, IConfiguration configuration, IUpload uploadService, ICountries countriesService, IHostingEnvironment environment, ApplicationDbContext db, ITeam teamService, IPosition positionService) { _playerService = playerService; _countriesService = countriesService; _configuration = configuration; _uploadService = uploadService; _environment = environment; _db = db; _teamService = teamService; _positionService = positionService; }
/// <summary> /// Конструктор /// </summary> public CountrySelectForm(ICountries countries) : base() { InitializeComponent(); // Инициализировать компоненты формы _countries = countries; // Скопировать список стран в поле ConfigureEntitiesDataGridView(); // Настроить визуальное представление элемента отображения списка сущностей FillEntitiesDataGridView(); // Заполнить элемент отображения списка сущностей SetButtonActivity(); // Задать активность элементов управления }
/// <summary> /// Конструктор /// </summary> public RegionForm(IRegion region, ICountries countries) { InitializeComponent(); // Инициализировать компоненты формы _region = region; // Сохранить регион в поле _countries = countries; // Сохранить список стран в поле _countryAfterRelinking = region.Country; // Сохранить страну, связанную с регионом CleanAllData(); // Очистить все данные формы CopyDataFromEntity(); // Скопировать данные из сущности в компоненты формы }
public BasicDataController(ICountries countries, IStates states, IRoles roles, IDepartments departments, IGender gender, INationality nationality, ICurrency currency, IIdentificationtypes identificationtypes, IMaritalstatuses maritalstatuses, IEntities entities)//, ITaxMaster tasMaster) { _countries = countries; _states = states; _roles = roles; _departments = departments; _gender = gender; _nationality = nationality; _currency = currency; _identificationtypes = identificationtypes; _maritalstatuses = maritalstatuses; _entities = entities; }
/// <summary> /// Конструктор /// </summary> public RegionsForm(IRegions regions, ICountries countries) : base() { InitializeComponent(); // Инициализировать компоненты формы _regions = regions; // Сохранить список регионов в поле _countries = countries; // Сохранить список стран с поле ConfigureEntitiesDataGridView(); // Настроить визуальное представление элемента отображения списка сущностей FillEntitiesDataGridView(); // Заполнить элемент отображения списка сущностей SetButtonActivity(); // Задать активность элементов управления }
/// <summary> /// Initializes a new instance of the LandauWebAPI class. /// </summary> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The set of delegating handlers to insert in the http /// client pipeline. /// </param> public LandauWebAPI(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { this._banners = new Banners(this); this._brands = new Brands(this); this._catalogs = new Catalogs(this); this._colors = new Colors(this); this._contactUs = new ContactUsOperations(this); this._countries = new Countries(this); this._groupOrders = new GroupOrders(this); this._images = new Images(this); this._productImages = new ProductImages(this); this._productReviews = new ProductReviews(this); this._products = new Products(this); this._questions = new Questions(this); this._retailers = new Retailers(this); this._seo = new SeoOperations(this); this._signUps = new SignUps(this); this._states = new States(this); this._swatches = new Swatches(this); this._baseUri = new Uri("http://microsoft-apiapp5dcb282abbf74b72ad1667c2-staging.azurewebsites.net:80"); }
/// <summary> /// Initializes a new instance of the LandauPortalWebAPI class. /// </summary> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The set of delegating handlers to insert in the http /// client pipeline. /// </param> public LandauPortalWebAPI(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { this._banners = new Banners(this); this._brands = new Brands(this); this._cache = new Cache(this); this._catalogs = new Catalogs(this); this._colors = new Colors(this); this._contactUs = new ContactUsOperations(this); this._countries = new Countries(this); this._emailFavorites = new EmailFavorites(this); this._groupOrders = new GroupOrders(this); this._images = new Images(this); this._productImages = new ProductImages(this); this._productReviews = new ProductReviews(this); this._products = new Products(this); this._questions = new Questions(this); this._retailers = new Retailers(this); this._seo = new SeoOperations(this); this._signUps = new SignUps(this); this._states = new States(this); this._swatches = new Swatches(this); this._baseUri = new Uri(API_ENDPOINT); }
/// <param name='operations'> /// Reference to the ZtherApiIntegration.API.ICountries. /// </param> /// <param name='code'> /// Required. /// </param> /// <param name='cancellationToken'> /// Cancellation token. /// </param> public static async Task <Country> GetByCountryAsync(this ICountries operations, string code, CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Microsoft.Rest.HttpOperationResponse <ZtherApiIntegration.API.Models.Country> result = await operations.GetByCountryWithOperationResponseAsync(code, cancellationToken).ConfigureAwait(false); return(result.Body); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='isoCode'> /// </param> public static object Get1(this ICountries operations, string isoCode) { return(operations.Get1Async(isoCode).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static object Get(this ICountries operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }
public CountriesController(ICountries process) { _process = process; }
public CountriesController(ICountries countries) { _countries = countries; }