ServiceServiceInterfaceTryExecuteResultType Method |
Note: This API is now obsolete.
Namespace: CMS.Core
[ObsoleteAttribute("This functionality is no longer supported by Service<ServiceInterface> class. Resolve the service by an explicit call to CMS.Core.Service.Resolve<TService>() and execute the lambda over the service instance. Use CMS.Core.Service.IsRegistered(Type) to test whether service is registered.", true)] public static ResultType TryExecute<ResultType>( Func<ServiceInterface, ResultType> lambda )