Table of Contents

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
IRequestHandler<InitialSetup.Command, CommandResponseDto<ShortGuid>>
Inherited Members

Constructors

Handler(IRaythaDbContext, IEmailerConfiguration, IFileStorageProvider)

public Handler(IRaythaDbContext db, IEmailerConfiguration emailerConfiguration, IFileStorageProvider fileStorageProvider)

Parameters

db IRaythaDbContext
emailerConfiguration IEmailerConfiguration
fileStorageProvider IFileStorageProvider

Methods

Handle(Command, CancellationToken)

Handles a request

public Task<CommandResponseDto<ShortGuid>> Handle(InitialSetup.Command request, CancellationToken cancellationToken)

Parameters

request InitialSetup.Command

The request

cancellationToken CancellationToken

Cancellation 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 CancellationToken
defaultThemeId 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.Command
defaultThemeId Guid

SetHomePage()

protected void SetHomePage()

SetPrimaryFieldsOnContentTypes()

protected void SetPrimaryFieldsOnContentTypes()