Request

Response

    BaseReadOnlyExchangeModel class

    This base class provides essential read-only exchange capabilities while offering additional functionalities such as data caching and logging. It serves as a foundation for building upon these features.

    public abstract class BaseReadOnlyExchangeModel : BaseExchangeModel, IExchangeReader
    

    Public Members

    namedescription
    BaseReadOnlyExchangeModel(…) Initializes a new instance of BaseReadOnlyExchangeModel
    event AfterGetLatestExchangeDetails Event should be invoked After the get latest exchange details.
    event BeforeGetLatestExchangeDetails Event should be invoked Before the get latest exchange details.
    override event ExchangeUpdated The event will trigger when pubnub returns data stating exchange got updated.
    event GetLatestExchangeDetails Event should be invoked to get the latest exchange details
    virtual GetExchangeAsync(…) Retrieve an instance of data exchange by exchange identifier(CollectionId and ExchangeId).
    virtual GetValidExchangesAsync(…) It will validate exchanges for parent folder deletion, folder location change, etc on hosting provider.
    virtual OnGetLatestExchangeDataAction(…) Triggers BeforeGetExchange,GetExchangeDetails and AfterGetExchange event handlers to get the latest details for exchange.
    abstract UnloadExchangesAsync(…) The process involves unloading exchanges and removing the data exchange element from the platform application. This step should be optional for the user.
    virtual ValidateGetLatestExchangeAsync() It will validate GetLatestExchange action. I should be executed before GetLatestExchange and according the status further method should be executed. The validation is completely depends on platform applications.
    virtual ValidateGetLatestExchangeDetailsAsync() It will verify the prerequisites for the latest exchange details. I should be executed before GetLatestExchangeDetailsAsync and according the status further method should be executed. The validation is completely depends on platform applications.

    See Also