ServiceServiceInterfaceTryExecuteResultType Method |
Attempts to execute the given lambda expression over the service instance. If service instance is not available, does not execute and returns default value of ReturnType
Namespace: CMS.CoreAssembly: CMS.Core (in CMS.Core.dll) Version: 8.2.23
Syntax public static ResultType TryExecute<ResultType>(
Func<ServiceInterface, ResultType> lambda
)
Parameters
- lambda
- Type: SystemFuncServiceInterface, ResultType
Type Parameters
- ResultType
Return Value
Type:
ResultTypeSee Also