Class InitialSetup.Handler
- Namespace
- Raytha.Application.OrganizationSettings.Commands
- Assembly
- Raytha.Application.dll
public class InitialSetup.Handler : IRequestHandler<InitialSetup.Command, CommandResponseDto<ShortGuid>>
- Inheritance
-
InitialSetup.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbContext, IEmailerConfiguration, IFileStorageProvider)
public Handler(IRaythaDbContext db, IEmailerConfiguration emailerConfiguration, IFileStorageProvider fileStorageProvider)
Parameters
db
IRaythaDbContextemailerConfiguration
IEmailerConfigurationfileStorageProvider
IFileStorageProvider
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(InitialSetup.Command request, CancellationToken cancellationToken)
Parameters
request
InitialSetup.CommandThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<CommandResponseDto<ShortGuid>>
Response from the request
InsertDefaultAuthentications()
protected void InsertDefaultAuthentications()
InsertDefaultContentTypeFields()
protected void InsertDefaultContentTypeFields()
InsertDefaultContentTypes()
protected void InsertDefaultContentTypes()
InsertDefaultEmailTemplates()
protected void InsertDefaultEmailTemplates()
InsertDefaultPages()
protected void InsertDefaultPages()
InsertDefaultPosts()
protected void InsertDefaultPosts()
InsertDefaultRolesAndSuperAdmin(Command)
protected void InsertDefaultRolesAndSuperAdmin(InitialSetup.Command request)
Parameters
request
InitialSetup.Command
InsertDefaultThemeAssetsToFileStorage(CancellationToken, Guid)
protected Task<IReadOnlyCollection<MediaItem>> InsertDefaultThemeAssetsToFileStorage(CancellationToken cancellationToken, Guid defaultThemeId)
Parameters
cancellationToken
CancellationTokendefaultThemeId
Guid
Returns
- Task<IReadOnlyCollection<MediaItem>>
InsertDefaultViews()
protected void InsertDefaultViews()
InsertDefaultWebTemplates(IReadOnlyCollection<MediaItem>, Guid)
protected void InsertDefaultWebTemplates(IReadOnlyCollection<MediaItem> mediaItems, Guid defaultThemeId)
Parameters
mediaItems
IReadOnlyCollection<MediaItem>defaultThemeId
Guid
InsertOrganizationSettings(Command, Guid)
protected void InsertOrganizationSettings(InitialSetup.Command request, Guid defaultThemeId)
Parameters
request
InitialSetup.CommanddefaultThemeId
Guid
SetHomePage()
protected void SetHomePage()
SetPrimaryFieldsOnContentTypes()
protected void SetPrimaryFieldsOnContentTypes()