Search Results for

    Show / Hide Table of Contents

    Class RegionService

    Inheritance
    System.Object
    RegionService
    Implements
    IRegionService
    Namespace: DirectScale.Disco.Extension.Services
    Assembly: DirectScale.Disco.Extension.Abstractions.dll
    Syntax
    public class RegionService : Object, IRegionService

    Constructors

    RegionService(IApiService)

    Declaration
    public RegionService(IApiService apiService)
    Parameters
    Type Name Description
    IApiService apiService

    Methods

    GetRegionId(String, String)

    Gets the region id over this countryCode and stateCode.

    Declaration
    public Task<int> GetRegionId(string countryCode, string stateCode)
    Parameters
    Type Name Description
    System.String countryCode

    Country.

    System.String stateCode

    State.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Int32>

    Returns the region id of the region that include this countryCode and stateCode.

    See Also
    Address

    GetRegionIdByAddress(Address)

    Gets the region id over this address's country and state.

    Declaration
    public Task<int> GetRegionIdByAddress(Address address)
    Parameters
    Type Name Description
    Address address

    Address.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Int32>

    Returns the region id of the region that include this address's country and state.

    See Also
    GetRegionId(String, String)

    GetRegionName(Int32)

    Gets the description of the regionId.

    Declaration
    public Task<string> GetRegionName(int regionId)
    Parameters
    Type Name Description
    System.Int32 regionId

    Region id.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.String>

    Name of region.

    Implements

    IRegionService
    In This Article
    Back to top Copyright © 2022 DirectScale
    Generated by DocFX