Class MacroSignatureUpdateService
- Namespace
- CMS.MacroEngine
- Assembly
- CMS.MacroEngine.dll
Service for updating macro signatures within the system.
public class MacroSignatureUpdateService : IMacroSignatureUpdateService
- Inheritance
-
objectMacroSignatureUpdateService
- Implements
- Extension Methods
Constructors
MacroSignatureUpdateService(ILocalizationService, IEventLogService)
Initializes a new instance of MacroSignatureUpdateService.
public MacroSignatureUpdateService(ILocalizationService localizationService, IEventLogService eventLogService)
Parameters
localizationServiceILocalizationServiceeventLogServiceIEventLogService
Methods
UpdateMacroSignatures(string, string, bool, IUserInfo, Action<string>, Action<string>)
Updates the security signatures of existing macro expressions.
Signs all macros as the provided user if the oldSalt is not specified.
public void UpdateMacroSignatures(string oldSalt, string newSalt, bool refreshAll, IUserInfo user, Action<string> logProcess, Action<string> logError)
Parameters
oldSaltstringOld salt.
newSaltstringNew salt. If not specified, the application's current salt is used for resigning.
refreshAllboolIf enabled the process skips signature integrity check and re-signs all macros.
userIUserInfoUser for macro signing. The new macro signatures will contain the name or identity of this user.
logProcessAction<string>Action that provides logging of progress status messages.
logErrorAction<string>Action that provides logging of progress error messages.
Exceptions
- ArgumentException
If
useris not specified when signing all macros (oldSaltis null or empty, orrefreshAllistrue).