System.Object
Namespace: Umbraco.Cms.Core.Services Assembly: Umbraco.Core.dll Syntaxpublic class StylesheetService : FileServiceOperationBase<IStylesheetRepository, IStylesheet, StylesheetOperationStatus>, IService, IStylesheetService, IBasicFileService<IStylesheet>
Constructors View Source StylesheetService(ICoreScopeProvider, ILoggerFactory, IEventMessagesFactory, IStylesheetRepository, ILogger<StylesheetService>, IUserIdKeyResolver, IAuditRepository) Declaration
public StylesheetService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IStylesheetRepository repository, ILogger<StylesheetService> logger, IUserIdKeyResolver userIdKeyResolver, IAuditRepository auditRepository)
Parameters Properties View Source AllowedFileExtensions Declaration
protected override string[] AllowedFileExtensions { get; }
Property Value Type Description System.String[] View Source AlreadyExists Declaration
protected override StylesheetOperationStatus AlreadyExists { get; }
Property Value View Source CancelledByNotification Declaration
protected override StylesheetOperationStatus CancelledByNotification { get; }
Property Value View Source EntityType Declaration
protected override string EntityType { get; }
Property Value Type Description System.String View Source InvalidFileExtension Declaration
protected override StylesheetOperationStatus InvalidFileExtension { get; }
Property Value View Source InvalidName Declaration
protected override StylesheetOperationStatus InvalidName { get; }
Property Value View Source NotFound Declaration
protected override StylesheetOperationStatus NotFound { get; }
Property Value View Source ParentNotFound Declaration
protected override StylesheetOperationStatus ParentNotFound { get; }
Property Value View Source PathTooLong Declaration
protected override StylesheetOperationStatus PathTooLong { get; }
Property Value View Source Success Declaration
protected override StylesheetOperationStatus Success { get; }
Property Value Methods View Source CreateAsync(StylesheetCreateModel, Guid)
Creates a new stylesheet.
Declarationpublic async Task<Attempt<IStylesheet, StylesheetOperationStatus>> CreateAsync(StylesheetCreateModel createModel, Guid userKey)
Parameters Returns View Source CreateEntity(String, String) Declaration
protected override IStylesheet CreateEntity(string path, string content)
Parameters Type Name Description System.String path System.String content Returns View Source DeleteAsync(String, Guid)
Deletes a stylesheet.
Declarationpublic async Task<StylesheetOperationStatus> DeleteAsync(string path, Guid userKey)
Parameters Type Name Description System.String path
The path of the stylesheet to delete.
Guid userKeyThe key of the user performing the operation.
Returns View Source DeletedNotification(IStylesheet, EventMessages) Declarationprotected override StylesheetDeletedNotification DeletedNotification(IStylesheet target, EventMessages messages)
Parameters Returns View Source DeletingNotification(IStylesheet, EventMessages) Declaration
protected override StylesheetDeletingNotification DeletingNotification(IStylesheet target, EventMessages messages)
Parameters Returns View Source RenameAsync(String, StylesheetRenameModel, Guid)
Renames a stylesheet.
Declarationpublic async Task<Attempt<IStylesheet, StylesheetOperationStatus>> RenameAsync(string path, StylesheetRenameModel renameModel, Guid userKey)
Parameters Type Name Description System.String path
The path of the stylesheet to rename.
StylesheetRenameModel renameModelA StylesheetRenameModel with the changes.
Guid userKeyThe key of the user performing the operation.
Returns View Source SavedNotification(IStylesheet, EventMessages) Declarationprotected override StylesheetSavedNotification SavedNotification(IStylesheet target, EventMessages messages)
Parameters Returns View Source SavingNotification(IStylesheet, EventMessages) Declaration
protected override StylesheetSavingNotification SavingNotification(IStylesheet target, EventMessages messages)
Parameters Returns View Source UpdateAsync(String, StylesheetUpdateModel, Guid)
Updates an existing stylesheet.
Declarationpublic async Task<Attempt<IStylesheet, StylesheetOperationStatus>> UpdateAsync(string path, StylesheetUpdateModel updateModel, Guid userKey)
Parameters Type Name Description System.String path
The path of the stylesheet to update.
StylesheetUpdateModel updateModelA StylesheetUpdateModel with the changes.
Guid userKeyThe key of the user performing the operation.
ReturnsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4