Show / Hide Table of Contents

Interface IOperation

This interface represents the basic contract for all the Operations. It imposes no restrictions or particular details on the operation execution process and leaves the specifics of setting up the operations to their individual implementations.

A successfully executed Operation instance should not be reused.

Namespace: Adobe.DocumentCloud.Services
Assembly: Adobe.DocumentCloud.Services.Doc.dll
Syntax
public interface IOperation

Methods

Execute(ClientContext)

Executes this operation synchronously using the provided context instance.

Declaration
FileRef Execute(ClientContext context)
Parameters
Type Name Description
ClientContext context

a ClientContext instance

Returns
Type Description
FileRef

an Operation-specific result

Exceptions
Type Condition
ServiceApiException

if an API call results in an error response

SDKException

this is thrown for client-side errors

System.IO.FileNotFoundException

if the client conifg file or the input source does not exist in a specified path

System.IO.IOException

if there is an error in reading either the input source or the resulting file

System.ArgumentException

thrown when any of the inputs provided is not valid

System.InvalidOperationException

thrown when operation instance is invoked more than once

Back to top Copyright © 2019 Adobe. All rights reserved.