elsa-core/src/modules/Elsa.ProtoActor.Common/ProtoActorSystem.cs

33 lines
1.1 KiB
C#

using Elsa.ProtoActor.Common.Options;
using Proto;
using Proto.Cluster;
using Proto.Cluster.Identity;
using Proto.Remote.GrpcNet;
namespace Elsa.ProtoActor.Common;
public class ProtoActorSystem
{
public IClusterProvider ClusterProvider { get; set; }
public GrpcNetRemoteConfig RemoteConfig { get; set; }
public ActorSystemConfig ActorSystemConfig { get; set; } = ActorSystemConfig.Setup();
public IIdentityLookup IdentityLookup { get; set; }
public ClusterConfigurationSettings ClusterConfigurationSettings { get; set; } = new();
public string Name { get; set; }
public ProtoActorSystem(IClusterProvider clusterProvider, GrpcNetRemoteConfig remoteConfig, ActorSystemConfig actorSystemConfig, IIdentityLookup identityLookup, string name, ClusterConfigurationSettings clusterConfigurationSettings)
{
ClusterProvider = clusterProvider;
RemoteConfig = remoteConfig;
ActorSystemConfig = actorSystemConfig;
IdentityLookup = identityLookup;
Name = name;
ClusterConfigurationSettings = clusterConfigurationSettings;
}
public ProtoActorSystem()
{
}
}