Akka.Interfaced.Tests.ExceptionAtStartStopTest.TestExceptionActor.OnStart C# (CSharp) Method

OnStart() protected method

protected OnStart ( bool restarted ) : Task
restarted bool
return Task
            protected override async Task OnStart(bool restarted)
            {
                _log.Add("OnStart");

                if (_tag == "OnStart")
                    throw new Exception();

                await Task.Yield();

                _log.Add("OnStart Done");

                if (_tag == "OnStart Done")
                    throw new Exception();
            }