protected Task ProcessRequestCore(ITransportConnection connection)
{
Connection = connection;
if (IsSendRequest)
{
return ProcessSendRequest();
}
else if (IsAbortRequest)
{
return Connection.Abort(ConnectionId);
}
else
{
return InitializePersistentState()
.Then((t, c) => t.ProcessReceiveRequest(c), this, connection);
}
}