private void StartKeepAlive() { var keepAliveRequest = new SendKeepAliveRequest() { TaskId = new TaskId(_taskExecutionInstance.ApplicationName, _taskExecutionInstance.TaskName), TaskExecutionId = _taskExecutionInstance.TaskExecutionId, ExecutionTokenId = _taskExecutionInstance.ExecutionTokenId }; _keepAliveDaemon = new KeepAliveDaemon(_taskExecutionRepository, new WeakReference(this)); _keepAliveDaemon.Run(keepAliveRequest, _taskExecutionOptions.KeepAliveInterval.Value); }