BaseWriteOnlyExchangeModel class
This base class provides essential write 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 BaseWriteOnlyExchangeModel : BaseExchangeModel, IExchangeWriter
Public Members
name | description |
---|---|
BaseWriteOnlyExchangeModel(…) | Initializes a new instance of BaseWriteOnlyExchangeModel |
override Client { get; protected internal set; } | Instance of Autodesk.DataExchange. |
event AfterCreateExchange | Event should be invoked after the create exchange. |
event BeforeCreateExchange | Event should be invoked Before the create exchange. |
event ViewableGenerationCompleted | The event will trigger when viewable generation is completed.It can be either failed or successful. The result of viewable generation is sent by event parameter. |
event ViewableGenerationStarted | The event will trigger when viewable generation is started. |
virtual CreateExchangeAsync(…) | It will create exchange as per exchange inputs and provide instance of DataExchange. |
virtual DeleteExchangeAsync(…) | It will delete data exchange. |
abstract UpdateExchangeAsync(…) | Update the Exchange. Upload the view information. |
virtual ValidateCanCreateExchangeAsync() | Asynchronously validates whether the creation of an exchange can proceed. This method can be overridden by the host application to perform necessary checks or validations, ensuring that all preconditions are met before the exchange creation process begins. |
virtual ValidateCanUpdateExchangeAsync(…) | This method can be overridden to allow the host application to intercept and potentially prevent the exchange update process. It provides an opportunity to perform checks or actions, such as prompting the user to save changes or verifying that the current document is in a suitable state for an exchange update. This is particularly useful if modifications have been made to the document or if other preconditions must be met before continuing with the update process. |
See Also
- class BaseExchangeModel
- namespace Autodesk.DataExchange.BaseModels