Add DistributedCachingTransport enum

Introduced the DistributedCachingTransport enum to define caching transport options. Also cleaned up the code by removing an unnecessary using directive and a commented summary in the MassTransitBroker enum.
This commit is contained in:
Sipke Schoorstra 2024-07-10 15:32:01 +02:00
parent 073598c748
commit 4d41cd743b
3 changed files with 10 additions and 4 deletions

View file

@ -0,0 +1,9 @@
namespace Elsa.ServerAndStudio.Web.Enums;
/// Represents the transport options for distributed caching.
public enum DistributedCachingTransport
{
None,
Memory,
MassTransit
}

View file

@ -1,8 +1,6 @@
namespace Elsa.ServerAndStudio.Web.Enums;
/// <summary>
/// Represents the type of messaging broker used in MassTransit.
/// </summary>
public enum MassTransitBroker
{
Memory,

View file

@ -5,12 +5,11 @@ using Elsa.MassTransit.Options;
using Elsa.Extensions;
using Elsa.ServerAndStudio.Web.Extensions;
using Elsa.MassTransit.Extensions;
using Elsa.Server.Web;
using Elsa.ServerAndStudio.Web.Enums;
using Medallion.Threading.FileSystem;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Data.Sqlite;
using Proto.Persistence.Sqlite;
using MassTransitBroker = Elsa.ServerAndStudio.Web.Enums.MassTransitBroker;
const bool useMassTransit = true;
const bool useProtoActor = false;