#error PLATFORM_SUPPORTS_MESSAGEBUS was explicitly defined in CrashReportClient.Target.cs for shipping configuration. MessageBus is required by Concert. Ensure it is still enabled.
#endif
if(!IMessagingModule::Get().GetDefaultBus())
{
UE_LOG(CrashReportClientLog,Error,TEXT("MessageBus is not enabled in this configuration. Recovery service will be disabled!"));
returnfalse;
}
if(!IConcertSyncServerModule::IsAvailable())
{
UE_LOG(CrashReportClientLog,Error,TEXT("ConcertSyncServer Module is missing. Recovery service will be disabled!"));
// The UdpMessaging plugin should be added to the {appname}.Target.cs build file.
UE_LOG(CrashReportClientLog,Error,TEXT("The 'UDP Messaging' plugin is disabled. The Concert server only supports UDP protocol. Recovery service will be disabled!"));
returnfalse;
}
// Setup the disaster recovery server configuration
ServerConfig->bMountDefaultSessionRepository=false;// Let the client mount its own repository to support concurrent recovery server and prevent them from concurrently accessing non-sharable database files.
ServerConfig->AuthorizedClientKeys.Add(ServerConfig->ServerName);// The disaster recovery client is configured to use the unique server name as key to identify itself.
// As convention, the disaster recovery session names starts with the server name, followed by a sequence number, the project name and date time. (See RecoveryService::MakeSessionName())
// The user may have enabled/disabled the recovery service few times and as result, several live sessions will be available. Need to pick the last one. The highest sequence number
// in the session name corresponds to the last session created.