protected override void PreStart()
{
base.PreStart();
_self = Self;
_eventStream = Context.System.EventStream;
_connection.Closed += OnConnectionClose;
_connection.Received += OnConnectionReceive;
_connection.Open();
if (_initiator.TokenTimeout != TimeSpan.Zero)
{
_timeoutCanceler = Context.System.Scheduler.ScheduleTellOnceCancelable(
_initiator.TokenTimeout, Self, PoisonPill.Instance, Self);
}
}