aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/core/av_bootstrapped.h
blob: 65bd224152266de829e0f8b8306b2ac681d50da9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include "actor_virtual.h"

namespace NActors {

class TEventForStart;

class TActorAutoStart: public IActor {
protected:
    virtual void DoOnStart(const TActorId& senderActorId) = 0;
    TAutoPtr<IEventHandle> AfterRegister(const TActorId& self, const TActorId& parentId) override;
public:
    void ProcessEvent(TEventContext<TEventForStart>& ev);

    TActorAutoStart()
    {}
};
}