Replace the sessionInfo and recorderInfo with TaskSharingInfo to simplify the operation