API Reference > imodeljs-common > RpcInterface > RpcOperation RpcOperation Namespace Function Name Description RpcOperation.allowResponseCaching Convenience decorator for setting an RPC operation policy that allows response caching. RpcOperation.setDefaultPolicy Decorator for setting the default policy for an RPC interface definition class. RpcOperation.setPolicy Decorator for setting the policy for an RPC operation function. RpcOperation.setRoutingProps Convenience decorator for setting an RPC operation policy that supplies the IModelRpcProps for an operation. Defined in core/common/src/rpc/core/RpcOperation.ts Line 115 RpcOperation Class An RPC operation descriptor. Methods Name Description forEach(definition: RpcInterfaceDefinition<RpcInterface>, callback: (operation: RpcOperation) => void): void Static Iterates the operations of an RPC interface definition. lookup(target: string | RpcInterfaceDefinition<RpcInterface>, operationName: string): RpcOperation Static Looks up an RPC operation by name. Properties Name Type Description fallbackToken Static undefined | IModelRpcProps A fallback token to use for RPC requests that do not semantically depend on an iModel. interfaceDefinition Readonly RpcInterfaceDefinition<RpcInterface> The RPC interface definition for this operation. interfaceVersion Accessor ReadOnly string The version of this operation. operationName Readonly string The name of this operation. policy RpcOperationPolicy The policy for this operation. Defined in core/common/src/rpc/core/RpcOperation.ts Line 55 Last Updated: 12 June, 2024