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
- dbIRaythaDbContext
- emailerConfigurationIEmailerConfiguration
- fileStorageProviderIFileStorageProvider
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(InitialSetup.Command request, CancellationToken cancellationToken)Parameters
- requestInitialSetup.Command
- The request 
- cancellationTokenCancellationToken
- 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
- requestInitialSetup.Command
InsertDefaultThemeAssetsToFileStorage(CancellationToken, Guid)
protected Task<IReadOnlyCollection<MediaItem>> InsertDefaultThemeAssetsToFileStorage(CancellationToken cancellationToken, Guid defaultThemeId)Parameters
- cancellationTokenCancellationToken
- defaultThemeIdGuid
Returns
- Task<IReadOnlyCollection<MediaItem>>
InsertDefaultViews()
protected void InsertDefaultViews()InsertDefaultWebTemplates(IReadOnlyCollection<MediaItem>, Guid)
protected void InsertDefaultWebTemplates(IReadOnlyCollection<MediaItem> mediaItems, Guid defaultThemeId)Parameters
- mediaItemsIReadOnlyCollection<MediaItem>
- defaultThemeIdGuid
InsertOrganizationSettings(Command, Guid)
protected void InsertOrganizationSettings(InitialSetup.Command request, Guid defaultThemeId)Parameters
- requestInitialSetup.Command
- defaultThemeIdGuid
SetHomePage()
protected void SetHomePage()SetPrimaryFieldsOnContentTypes()
protected void SetPrimaryFieldsOnContentTypes()