Akka.Cluster.Tools.PublishSubscribe.DistributedPubSubSettings.Create C# (CSharp) Метод

Create() публичный статический Метод

Creates cluster publish/subscribe settings from the default configuration `akka.cluster.pub-sub`.
public static Create ( ActorSystem system ) : DistributedPubSubSettings
system ActorSystem
Результат DistributedPubSubSettings
        public static DistributedPubSubSettings Create(ActorSystem system)
        {
            var config = system.Settings.Config.GetConfig("akka.cluster.pub-sub");
            if (config == null) throw new ArgumentException("Actor system settings has no configuration for akka.cluster.pub-sub defined");

            return Create(config);
        }

Same methods

DistributedPubSubSettings::Create ( Config config ) : DistributedPubSubSettings

Usage Example

Пример #1
0
 /// <summary>
 /// TBD
 /// </summary>
 /// <param name="system">TBD</param>
 public DistributedPubSub(ExtendedActorSystem system)
 {
     _system      = system;
     _settings    = DistributedPubSubSettings.Create(system);
     _cluster     = Cluster.Get(_system);
     _mediatorRef = CreateMediator();
 }
All Usage Examples Of Akka.Cluster.Tools.PublishSubscribe.DistributedPubSubSettings::Create