﻿using DragonSpark.Compose;
using DragonSpark.Model.Commands;
using Microsoft.Extensions.DependencyInjection;

namespace DragonSpark.Application.Hosting.Server.Blazor;

sealed class DefaultServiceConfiguration : ICommand<IServiceCollection>
{
	public static DefaultServiceConfiguration Default { get; } = new DefaultServiceConfiguration();

	DefaultServiceConfiguration() {}

	public void Execute(IServiceCollection parameter)
	{
		parameter.AddRazorPages()
		         .Return(parameter)
		         .AddServerSideBlazor();
	}
}