Beispiel #1
0
 static void Main(string[] args)
 {
     Example.Main();
     Example2.Main();
     Example3.Main();
     Example4.Main();
     ExampleDiscard.Main();
     ExampleClassDeconstruction.Main();
     ExampleExtension.Main();
     ExampleNullableEx.Main();
     ExampleSystem.KeyValuePair();
 }
        public static void Start()
        {
            var config = ConfigurationFactory.ParseString(@"
                akka.persistence {
                    journal {
                        plugin = ""akka.persistence.journal.mongodb""
                        mongodb {
                            connection-string = ""mongodb://127.0.0.1:27017/example""
                        }
                    }
                }");

            ExampleSystem = ActorSystem.Create("ExampleSystem", config);

            MongoDbPersistence.Get(ExampleSystem);

            ExampleActor = ExampleSystem.ActorOf <ExampleActor>();
        }
 public static void Stop()
 {
     ExampleSystem.Terminate().Wait();
 }