Navigation
API > API/Plugins > API/Plugins/ConcertClient > API/Plugins/ConcertClient/IConcertClient
Description
Create or load a repository (directory structure) containing sessions. The server internally maps the ID to its directories. If the server finds the repository, it will scan the corresponding directories, discover the sessions, process them and make them visible to the other clients. If the repository is not found, but bCreateIfNotExist is true, a new repository will be created. Repositories are persistent and visible to all server instances until dropped by the clients. Any server instance can mount a repository unless it is already mounted by another instance.
Usually, a client would create a new empty repository and set it as default to populate it, then keep the ID to reload/drop it later.
| Name | MountSessionRepository |
| Type | function |
| Header File | /Engine/Plugins/Developer/Concert/ConcertMain/Source/ConcertClient/Public/IConcertClient.h |
| Include Path | #include "IConcertClient.h" |
TFuture < FConcertAdmin_MountSessionRepositoryResponse > MountSessionRepository
(
const FGuid & ServerAdminEndpointId,
const FString & RepositoryRootDir,
const FGuid & RepositoryId,
bool bCreateIfNotExist,
bool bAsDefault
) const
Parameters
| Name | Remarks |
|---|---|
| ServerAdminEndpointId | The server for which the workspace must be mounted. |
| RepositoryRootDir | The base directory containing the repository to create or load. Can hold several repositories. Leave it empty to use the server one if the client/server are not running on the same machine. |
| RepositoryId | A unique Id for the repository. Must be valid. |
| bCreateIfNotExist | Create a new repository if the specified one doesn't exist. |
| bAsDefault | Whether this repository should be set as the default one to store newly created sessions. |