Request

Response

    BaseReadWriteExchangeModel class

    Base implementation of IExchangeReader and IExchangeWriter for read-write exchange models.

    public abstract class BaseReadWriteExchangeModel : BaseExchangeModel, IExchangeReader, 
        IExchangeWriter
    

    Public Members

    namedescription
    BaseReadWriteExchangeModel(…) Initializes a new instance of BaseReadWriteExchangeModel
    override Client { get; protected internal set; } Gets or sets the Autodesk.DataExchange instance.
    event AfterCreateExchange Occurs after CreateExchangeAsync successfully creates an exchange. Handlers receive the created exchange metadata.
    event AfterGetLatestExchangeDetails Occurs after the latest exchange details have been loaded into the host application.
    event BeforeCreateExchange Occurs before CreateExchangeAsync creates an exchange. Handlers receive the creation input and may prepare the host application.
    event BeforeGetLatestExchangeDetails Occurs before the latest exchange details are loaded into the host application.
    override event ExchangeUpdated Occurs when a loaded exchange is updated on the service. Handlers receive identifiers for the affected exchange and revision.
    event GetLatestExchangeDetails Occurs during get-latest processing so the host application can load exchange element data. Handlers are invoked asynchronously and receive cancellation support through the event args.
    virtual CreateExchangeAsync(…) Creates a new exchange from the supplied input.
    virtual DeleteExchangeAsync(…) Deletes the specified exchange.
    virtual GetExchangeAsync(…) Retrieves exchange metadata for the specified identifier.
    virtual GetLatestUpdatesForExchangesAsync(…) Determines whether a newer exchange version is available for each input exchange.
    virtual GetValidExchangesAsync(…) Validates each exchange against hosting-provider state such as folder deletion or relocation.
    virtual OnGetLatestExchangeDataAction(…) Runs the get-latest workflow: raises before/load/after events so the host application can synchronize the latest exchange data.
    abstract UnloadExchangesAsync(…) Unloads exchanges from the host application and returns the identifiers that were removed.
    abstract UpdateExchangeAsync(…) Updates the specified exchange, including uploading view information.
    virtual ValidateCanCreateExchangeAsync(…) Validates whether exchange creation can proceed.
    virtual ValidateCanUpdateExchangeAsync(…) Validates whether exchange update can proceed.
    virtual ValidateGetLatestExchangeAsync(…) Validates whether loading the latest exchange data can proceed.
    virtual ValidateGetLatestExchangeDetailsAsync(…) Validates whether retrieving the latest exchange details can proceed.

    See Also