Click or drag to resize
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.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 9.0.0
Syntax
C#
public static ResultType TryExecute<ResultType>(
	Func<ServiceInterface, ResultType> lambda
)

Parameters

lambda
Type: SystemFuncServiceInterface, ResultType

Type Parameters

ResultType

Return Value

Type: ResultType
See Also