Exemple #1
0
            public async void Could_be_defined_via_attribute()
            {
                var actor = system.FreshTypedActorOf <TestReentrantDefinedViaAttributeActor>();

                Assert.IsFalse(await actor.Call(x => x.NonReentrant()));
                Assert.IsTrue(await actor.Call(x => x.Reentrant()));
            }
Exemple #2
0
            public async void Calling_non_async_methods()
            {
                var actor = system.FreshTypedActorOf <TestActor>();

                await actor.Call(x => x.SetText("c-a"));

                Assert.AreEqual("c-a", await actor.Call(x => x.GetText()));
            }