av_bootstrapped.h 398 B

123456789101112131415161718
  1. #pragma once
  2. #include "actor_virtual.h"
  3. namespace NActors {
  4. class TEventForStart;
  5. class TActorAutoStart: public IActor {
  6. protected:
  7. virtual void DoOnStart(const TActorId& senderActorId) = 0;
  8. TAutoPtr<IEventHandle> AfterRegister(const TActorId& self, const TActorId& parentId) override;
  9. public:
  10. void ProcessEvent(TEventContext<TEventForStart>& ev);
  11. TActorAutoStart()
  12. {}
  13. };
  14. }