Interface IStoreSupport
Store action support.
Namespace: OpenText.Fusion.AdapterSdk.Api
Assembly: OpenText.Fusion.AdapterSdk.Api.dll
Syntax
public interface IStoreSupport
Remarks
Implementation of IStoreSupport
handles store action.
Methods
CreateStoreSupportProcessor(IStoreSupportRequest, CancellationToken)
Implementors of IStoreSupport
create an instance of a ICreateStoreSupportProcessor
that can store the
content of files provided in the request in the target repository.
Declaration
Task<IStoreSupportProcessor> CreateStoreSupportProcessor(IStoreSupportRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IStoreSupportRequest | request | The request. |
CancellationToken | cancellationToken | The cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
Task<IStoreSupportProcessor> | A Task representing the asynchronous operation. |
Examples
Here is an example of creating an ICreateStoreSupportProcessor
.
public async Task CreateStoreSupportProcessor(IStoreSupportRequest request, CancellationToken cancellationToken)
{
IStoreSupportProcessor processor = new CustomStoreSupportProcessor(request);
return Task.FromResult(processor);
}