IRuntimeRepository
Namespace: Meshmakers.Octo.Runtime.Contracts.Repositories
Interface of runtime repository, a repository that is used to access runtime entities.
public interface IRuntimeRepository
Properties
TenantId
Returns the tenant id
public abstract string TenantId { get; }
Property Value
Methods
LoadCacheForTenantAsync(ICkCacheService)
Loads the construction kit cache for the tenant based on the data in the repository.
Task LoadCacheForTenantAsync(ICkCacheService cacheService)
Parameters
cacheService
ICkCacheService
Cache service to load the cache into
Returns
GetSessionAsync()
Gets a new session
Task<IOctoSession> GetSessionAsync()
Returns
Task<IOctoSession>
The session object to handle a transaction
GetRtEntityByRtIdAsync(IOctoSession, RtEntityId)
Gets an entity by its runtime id.
Task<RtEntity> GetRtEntityByRtIdAsync(IOctoSession session, RtEntityId rtEntityId)
Parameters
session
IOctoSession
The session object
rtEntityId
RtEntityId
The runtime id
Returns
GetRtEntityByRtIdAsync<TEntity>(IOctoSession, OctoObjectId)
Gets an entity by its runtime id.
Task<TEntity> GetRtEntityByRtIdAsync<TEntity>(IOctoSession session, OctoObjectId rtId)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
The session object
rtId
OctoObjectId
The object id
Returns
GetRtEntitiesByIdAsync(IOctoSession, CkId<CkTypeId>, IReadOnlyList<OctoObjectId>, DataQueryOperation, Nullable<Int32>, Nullable<Int32>)
Gets entities based on the query options.
Task<IResultSet<RtEntity>> GetRtEntitiesByIdAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, IReadOnlyList<OctoObjectId> rtIds, DataQueryOperation dataQueryOperation, Nullable<int> skip, Nullable<int> take)
Parameters
session
IOctoSession
The session object
ckTypeId
CkId<CkTypeId>
Construction kit type id
rtIds
IReadOnlyList<OctoObjectId>
Object ids of the runtime entities
dataQueryOperation
DataQueryOperation
Query options for data query
skip
Nullable<Int32>
Number of items to skip
take
Nullable<Int32>
Number of items to take
Returns
Task<IResultSet<RtEntity>>
Returns a result set of the given type
GetRtEntitiesByIdAsync<TEntity>(IOctoSession, IReadOnlyList<OctoObjectId>, DataQueryOperation, Nullable<Int32>, Nullable<Int32>)
Gets entities based on the query options.
Task<IResultSet<TEntity>> GetRtEntitiesByIdAsync<TEntity>(IOctoSession session, IReadOnlyList<OctoObjectId> rtIds, DataQueryOperation dataQueryOperation, Nullable<int> skip, Nullable<int> take)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
The session object
rtIds
IReadOnlyList<OctoObjectId>
Object ids of the runtime entities
dataQueryOperation
DataQueryOperation
Query options for data query
skip
Nullable<Int32>
Number of items to skip
take
Nullable<Int32>
Number of items to take
Returns
Task<IResultSet<TEntity>>
Returns a result set of the given type
GetRtEntitiesByTypeAsync(IOctoSession, CkId<CkTypeId>, DataQueryOperation, Nullable<Int32>, Nullable<Int32>)
Gets entities based on the query options.
Task<IResultSet<RtEntity>> GetRtEntitiesByTypeAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, DataQueryOperation dataQueryOperation, Nullable<int> skip, Nullable<int> take)
Parameters
session
IOctoSession
The session object
ckTypeId
CkId<CkTypeId>
Construction kit type id
dataQueryOperation
DataQueryOperation
Query options for data query
skip
Nullable<Int32>
Number of items to skip
take
Nullable<Int32>
Number of items to take
Returns
GetRtEntitiesByTypeAsync<TEntity>(IOctoSession, DataQueryOperation, Nullable<Int32>, Nullable<Int32>)
Task<IResultSet<TEntity>> GetRtEntitiesByTypeAsync<TEntity>(IOctoSession session, DataQueryOperation dataQueryOperation, Nullable<int> skip, Nullable<int> take)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
The session object
dataQueryOperation
DataQueryOperation
Query options for data query
skip
Nullable<Int32>
Number of items to skip
take
Nullable<Int32>
Number of items to take
Returns
GetRtAssociationsAsync(IOctoSession, IEnumerable<RtEntityId>, GraphDirections, Nullable<Int32>, Nullable<Int32>)
Gets associations for a runtime entity.
Task<IMultipleOriginResultSet<RtAssociation>> GetRtAssociationsAsync(IOctoSession session, IEnumerable<RtEntityId> rtEntityIds, GraphDirections direction, Nullable<int> skip, Nullable<int> take)
Parameters
session
IOctoSession
The session object
rtEntityIds
IEnumerable<RtEntityId>
Runtime entity identifiers to get associations for
direction
GraphDirections
Direction of associations to get
skip
Nullable<Int32>
Number of items to skip
take
Nullable<Int32>
Number of items to take
Returns
Task<IMultipleOriginResultSet<RtAssociation>>
GetRtAssociationsAsync(IOctoSession, RtEntityId, GraphDirections, CkId<CkAssociationRoleId>, Nullable<Int32>, Nullable<Int32>)
Gets associations for a runtime entity of a specific role
Task<IResultSet<RtAssociation>> GetRtAssociationsAsync(IOctoSession session, RtEntityId rtEntityId, GraphDirections direction, CkId<CkAssociationRoleId> roleId, Nullable<int> skip, Nullable<int> take)
Parameters
session
IOctoSession
The session object
rtEntityId
RtEntityId
Runtime entity identifier to get associations for
direction
GraphDirections
Direction of associations to get
roleId
CkId<CkAssociationRoleId>
Association role
skip
Nullable<Int32>
Number of items to skip
take
Nullable<Int32>
Number of items to take
Returns
Task<IResultSet<RtAssociation>>
GetRtAssociationsAsync(IOctoSession, IEnumerable<RtEntityId>, GraphDirections, CkId<CkAssociationRoleId>, Nullable<Int32>, Nullable<Int32>)
Gets associations for multiple runtime entities of a specific role
Task<IMultipleOriginResultSet<RtAssociation>> GetRtAssociationsAsync(IOctoSession session, IEnumerable<RtEntityId> rtEntityIds, GraphDirections direction, CkId<CkAssociationRoleId> roleId, Nullable<int> skip, Nullable<int> take)
Parameters
session
IOctoSession
The session object
rtEntityIds
IEnumerable<RtEntityId>
Runtime entity identifiers to get associations for
direction
GraphDirections
Direction of associations to get
roleId
CkId<CkAssociationRoleId>
Association role
skip
Nullable<Int32>
Number of items to skip
take
Nullable<Int32>
Number of items to take
Returns
Task<IMultipleOriginResultSet<RtAssociation>>
GetRtAssociationOrDefaultAsync(IOctoSession, RtEntityId, RtEntityId, CkId<CkAssociationRoleId>)
Gets an association by its origin, target and role id.
Task<RtAssociation> GetRtAssociationOrDefaultAsync(IOctoSession session, RtEntityId originRtEntityId, RtEntityId targetRtEntityId, CkId<CkAssociationRoleId> ckRoleId)
Parameters
session
IOctoSession
The session object
originRtEntityId
RtEntityId
Runtime id of the origin entity
targetRtEntityId
RtEntityId
Runtime id of the target entity
ckRoleId
CkId<CkAssociationRoleId>
Construction kit role id of the association
Returns
AsQueryableAsync<TEntity>(IOctoSession)
Returns the data source access object for the given entity type
Task<IQueryable<TEntity>> AsQueryableAsync<TEntity>(IOctoSession session)
Type Parameters
TEntity
Parameters
session
IOctoSession
Returns
AsQueryable<TEntity>(IOctoSession)
Returns the data source access object for the given entity type
IQueryable<TEntity> AsQueryable<TEntity>(IOctoSession session)
Type Parameters
TEntity
Parameters
session
IOctoSession
Returns
IQueryable<TEntity>
GetRtEntitiesGraphByTypeAsync(IOctoSession, CkId<CkTypeId>, DataQueryOperation, ICollection<NavigationPair>, Nullable<Int32>, Nullable<Int32>)
Retrieves a graph of runtime entities based on the given type and role id direction pairs.
Task<IResultSet<RtEntityGraphItem>> GetRtEntitiesGraphByTypeAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, DataQueryOperation dataQueryOperation, ICollection<NavigationPair> roleIdDirectionPairs, Nullable<int> skip, Nullable<int> take)
Parameters
session
IOctoSession
ckTypeId
CkId<CkTypeId>
dataQueryOperation
DataQueryOperation
roleIdDirectionPairs
ICollection<NavigationPair>
skip
Nullable<Int32>
take
Nullable<Int32>
Returns
Task<IResultSet<RtEntityGraphItem>>
GetRtEntitiesGraphByIdAsync(IOctoSession, CkId<CkTypeId>, IReadOnlyList<OctoObjectId>, DataQueryOperation, IEnumerable<NavigationPair>, Nullable<Int32>, Nullable<Int32>)
Retrieves a graph of runtime entities based on the given runtime identifier and role id direction pairs.
Task<IResultSet<RtEntityGraphItem>> GetRtEntitiesGraphByIdAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, IReadOnlyList<OctoObjectId> rtIds, DataQueryOperation dataQueryOperation, IEnumerable<NavigationPair> roleIdDirectionPairs, Nullable<int> skip, Nullable<int> take)
Parameters
session
IOctoSession
The session object
ckTypeId
CkId<CkTypeId>
Construction kit type id
rtIds
IReadOnlyList<OctoObjectId>
Object ids of the runtime entities
dataQueryOperation
DataQueryOperation
Query options for data query
roleIdDirectionPairs
IEnumerable<NavigationPair>
>Role id direction pairs that are loaded with this request
skip
Nullable<Int32>
Number of items to skip
take
Nullable<Int32>
Number of items to take
Returns
Task<IResultSet<RtEntityGraphItem>>
Returns a result set of the given type
CreateTransientRtAssociation(RtEntityId, CkId<CkAssociationRoleId>, RtEntityId)
Creates an instance of a runtime association
RtAssociation CreateTransientRtAssociation(RtEntityId originRtEntityId, CkId<CkAssociationRoleId> ckRoleId, RtEntityId targetRtEntityId)
Parameters
originRtEntityId
RtEntityId
Runtime id of the origin entity
ckRoleId
CkId<CkAssociationRoleId>
Construction kit role id of the association
targetRtEntityId
RtEntityId
Runtime id of the target entity
Returns
RtAssociation
A transient version of a role, need to be stored.
CreateTransientRtEntityAsync(CkId<CkTypeId>)
Creates an instance of a runtime entity
Task<RtEntity> CreateTransientRtEntityAsync(CkId<CkTypeId> ckTypeId)
Parameters
ckTypeId
CkId<CkTypeId>
Returns
Task<RtEntity>
Instance of the given construction kit type
CreateTransientRtEntityAsync<TEntity>()
Creates a typed version of a runtime entity
Task<TEntity> CreateTransientRtEntityAsync<TEntity>()
Type Parameters
TEntity
Type derived from RtEntity
Returns
Task<TEntity>
Instance of the given construction kit type
InsertOneRtEntityAsync(IOctoSession, CkId<CkTypeId>, RtEntity)
Inserts a single runtime entity
Task InsertOneRtEntityAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, RtEntity rtEntity)
Parameters
session
IOctoSession
Session object for transaction handling
ckTypeId
CkId<CkTypeId>
Construction kit type id
rtEntity
RtEntity
Object to insert
Returns
InsertOneRtEntityAsync<TEntity>(IOctoSession, TEntity)
Inserts a single runtime entity
Task InsertOneRtEntityAsync<TEntity>(IOctoSession session, TEntity rtEntity)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
Session object for transaction handling
rtEntity
TEntity
Object to insert
Returns
InsertManyRtEntityAsync(IOctoSession, CkId<CkTypeId>, ICollection<RtEntity>)
Inserts multiple runtime entities
Task InsertManyRtEntityAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, ICollection<RtEntity> rtEntities)
Parameters
session
IOctoSession
Session object for transaction handling
ckTypeId
CkId<CkTypeId>
Construction kit type id
rtEntities
ICollection<RtEntity>
Objects to insert
Returns
InsertManyRtEntityAsync<TEntity>(IOctoSession, ICollection<TEntity>)
Inserts multiple runtime entities
Task InsertManyRtEntityAsync<TEntity>(IOctoSession session, ICollection<TEntity> rtEntities)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
Session object for transaction handling
rtEntities
ICollection<TEntity>
Objects to insert
Returns
ReplaceOneRtEntityByIdAsync(IOctoSession, CkId<CkTypeId>, OctoObjectId, RtEntity)
Replace a single runtime entity
Task ReplaceOneRtEntityByIdAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, OctoObjectId rtId, RtEntity rtEntity)
Parameters
session
IOctoSession
Session object for transaction handling
ckTypeId
CkId<CkTypeId>
Construction kit type id
rtId
OctoObjectId
Runtime object id
rtEntity
RtEntity
Runtime object that is used as replacement
Returns
ReplaceOneRtEntityByIdAsync<TEntity>(IOctoSession, OctoObjectId, TEntity)
Replace a single runtime entity
Task ReplaceOneRtEntityByIdAsync<TEntity>(IOctoSession session, OctoObjectId rtId, TEntity rtEntity)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
Session object for transaction handling
rtId
OctoObjectId
Runtime object id
rtEntity
TEntity
Runtime object that is used as replacement
Returns
ReplaceOneRtEntityAsync(IOctoSession, FieldFilterCriteria, RtEntity)
Replace a single runtime entity
Task ReplaceOneRtEntityAsync(IOctoSession session, FieldFilterCriteria fieldFilterCriteria, RtEntity entity)
Parameters
session
IOctoSession
Session object for transaction handling
fieldFilterCriteria
FieldFilterCriteria
Object that contains the filter criteria
entity
RtEntity
Runtime object that is used as replacement
Returns
ReplaceOneRtEntityAsync<TEntity>(IOctoSession, FieldFilterCriteria, TEntity)
Replace a single runtime entity
Task ReplaceOneRtEntityAsync<TEntity>(IOctoSession session, FieldFilterCriteria fieldFilterCriteria, TEntity entity)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
Session object for transaction handling
fieldFilterCriteria
FieldFilterCriteria
Object that contains the filter criteria
entity
TEntity
Runtime object that is used as replacement
Returns
UpdateOneRtEntityByIdAsync(IOctoSession, CkId<CkTypeId>, OctoObjectId, RtEntity)
Updates a single runtime entity. Only attributes of the entity that are set in the update object are updated.
Task UpdateOneRtEntityByIdAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, OctoObjectId rtId, RtEntity rtEntity)
Parameters
session
IOctoSession
Session object for transaction handling
ckTypeId
CkId<CkTypeId>
Construction kit type id
rtId
OctoObjectId
Runtime object id
rtEntity
RtEntity
Runtime object that is used as replacement
Returns
UpdateOneRtEntityByIdAsync<TEntity>(IOctoSession, OctoObjectId, TEntity)
Updates a single runtime entity. Only attributes of the entity that are set in the update object are updated.
Task UpdateOneRtEntityByIdAsync<TEntity>(IOctoSession session, OctoObjectId rtId, TEntity rtEntity)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
Session object for transaction handling
rtId
OctoObjectId
Runtime object id
rtEntity
TEntity
Runtime object that is used as replacement
Returns
UpdateOneRtEntityAsync(IOctoSession, FieldFilterCriteria, RtEntity)
Updates a single runtime entity. Only attributes of the entity that are set in the update object are updated.
Task UpdateOneRtEntityAsync(IOctoSession session, FieldFilterCriteria fieldFilterCriteria, RtEntity rtEntity)
Parameters
session
IOctoSession
Session object for transaction handling
fieldFilterCriteria
FieldFilterCriteria
Object that contains the filter criteria
rtEntity
RtEntity
Runtime object that is used as replacement
Returns
UpdateOneRtEntityAsync<TEntity>(IOctoSession, FieldFilterCriteria, TEntity)
Updates a single runtime entity. Only attributes of the entity that are set in the update object are updated.
Task UpdateOneRtEntityAsync<TEntity>(IOctoSession session, FieldFilterCriteria fieldFilterCriteria, TEntity rtEntity)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
Session object for transaction handling
fieldFilterCriteria
FieldFilterCriteria
Object that contains the filter criteria
rtEntity
TEntity
Runtime object that is used as replacement
Returns
UpdateManyRtEntityAsync(IOctoSession, FieldFilterCriteria, RtEntity)
Updates a multiple runtime entities. Only attributes of the entity that are set in the update object are updated.
Task UpdateManyRtEntityAsync(IOctoSession session, FieldFilterCriteria fieldFilterCriteria, RtEntity rtEntity)
Parameters
session
IOctoSession
Session object for transaction handling
fieldFilterCriteria
FieldFilterCriteria
Object that contains the filter criteria
rtEntity
RtEntity
Runtime object that is used as replacement
Returns
UpdateManyRtEntityAsync<TEntity>(IOctoSession, FieldFilterCriteria, TEntity)
Updates multiple runtime entities. Only attributes of the entity that are set in the update object are updated.
Task UpdateManyRtEntityAsync<TEntity>(IOctoSession session, FieldFilterCriteria fieldFilterCriteria, TEntity rtEntity)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
Session object for transaction handling
fieldFilterCriteria
FieldFilterCriteria
Object that contains the filter criteria
rtEntity
TEntity
Runtime object that is used as replacement
Returns
DeleteOneRtEntityByRtIdAsync(IOctoSession, CkId<CkTypeId>, OctoObjectId)
Deletes a single runtime entity by its runtime id
Task DeleteOneRtEntityByRtIdAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, OctoObjectId rtId)
Parameters
session
IOctoSession
Session object for transaction handling
ckTypeId
CkId<CkTypeId>
Construction kit type id
rtId
OctoObjectId
Returns
DeleteOneRtEntityByRtIdAsync<TEntity>(IOctoSession, OctoObjectId)
Deletes a single runtime entity by its runtime id
Task DeleteOneRtEntityByRtIdAsync<TEntity>(IOctoSession session, OctoObjectId rtId)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
Session object for transaction handling
rtId
OctoObjectId
Runtime object id
Returns
DeleteOneRtEntityAsync(IOctoSession, CkId<CkTypeId>, FieldFilterCriteria)
Deletes a single runtime entity by the given filter options
Task DeleteOneRtEntityAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, FieldFilterCriteria fieldFilterCriteria)
Parameters
session
IOctoSession
Session object for transaction handling
ckTypeId
CkId<CkTypeId>
Construction kit type id
fieldFilterCriteria
FieldFilterCriteria
Object that contains the filter criteria
Returns
DeleteOneRtEntityAsync<TEntity>(IOctoSession, FieldFilterCriteria)
Deletes a single runtime entity by the given filter options
Task DeleteOneRtEntityAsync<TEntity>(IOctoSession session, FieldFilterCriteria fieldFilterCriteria)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
Session object for transaction handling
fieldFilterCriteria
FieldFilterCriteria
Object that contains the filter criteria
Returns
DeleteManyRtEntitiesAsync(IOctoSession, CkId<CkTypeId>, FieldFilterCriteria)
Deletes all entities with the given filter options
Task DeleteManyRtEntitiesAsync(IOctoSession session, CkId<CkTypeId> ckTypeId, FieldFilterCriteria fieldFilterCriteria)
Parameters
session
IOctoSession
Session object for transaction handling
ckTypeId
CkId<CkTypeId>
Construction kit type id
fieldFilterCriteria
FieldFilterCriteria
Object that contains the filter criteria
Returns
DeleteManyRtEntitiesAsync<TEntity>(IOctoSession, FieldFilterCriteria)
Deletes all entities with the given filter options
Task DeleteManyRtEntitiesAsync<TEntity>(IOctoSession session, FieldFilterCriteria fieldFilterCriteria)
Type Parameters
TEntity
The type of entity derived from RtEntity
Parameters
session
IOctoSession
Session object for transaction handling
fieldFilterCriteria
FieldFilterCriteria
Object that contains the filter criteria
Returns
ApplyChangesAsync(IOctoSession, IReadOnlyList<IEntityUpdateInfo<RtEntity>>, IReadOnlyList<AssociationUpdateInfo>, OperationResult)
Applies changes to the runtime repository
Task ApplyChangesAsync(IOctoSession session, IReadOnlyList<IEntityUpdateInfo<RtEntity>> entityUpdateInfoList, IReadOnlyList<AssociationUpdateInfo> associationUpdateInfoList, OperationResult operationResult)
Parameters
session
IOctoSession
Session object for transaction handling
entityUpdateInfoList
IReadOnlyList<IEntityUpdateInfo<RtEntity>>
List of runtime entity updates
associationUpdateInfoList
IReadOnlyList<AssociationUpdateInfo>
List of runtime association updates
operationResult
OperationResult
Result of the operation
Returns
ApplyChangesAsync(IOctoSession, IReadOnlyList<AssociationUpdateInfo>, OperationResult)
Applies changes to the runtime repository
Task ApplyChangesAsync(IOctoSession session, IReadOnlyList<AssociationUpdateInfo> associationUpdateInfoList, OperationResult operationResult)
Parameters
session
IOctoSession
Session object for transaction handling
associationUpdateInfoList
IReadOnlyList<AssociationUpdateInfo>
List of runtime association updates
operationResult
OperationResult
Result of the operation
Returns
ApplyChangesAsync(IOctoSession, IReadOnlyList<IEntityUpdateInfo<RtEntity>>, OperationResult)
Applies changes to the runtime repository
Task ApplyChangesAsync(IOctoSession session, IReadOnlyList<IEntityUpdateInfo<RtEntity>> entityUpdateInfoList, OperationResult operationResult)
Parameters
session
IOctoSession
Session object for transaction handling
entityUpdateInfoList
IReadOnlyList<IEntityUpdateInfo<RtEntity>>
List of runtime entity updates
operationResult
OperationResult
Result of the operation
Returns
UploadTemporaryLargeBinaryAsync(IOctoSession, String, String, DateTime, Stream, CancellationToken)
Uploads a file to be cached in the repository
Task<OctoObjectId> UploadTemporaryLargeBinaryAsync(IOctoSession session, string filename, string contentType, DateTime expiryDateTime, Stream stream, CancellationToken cancellationToken)
Parameters
session
IOctoSession
Session object for transaction handling
filename
String
Filename of the file
contentType
String
Content type of the file
expiryDateTime
DateTime
Expiry date time of the file
stream
Stream
Binary stream of the file
cancellationToken
CancellationToken
An optional cancellation token
Returns
ReplaceTemporaryLargeBinaryAsync(IOctoSession, String, String, Stream, CancellationToken)
Replaces a cached large binary file in the repository based on the file name
Task<OctoObjectId> ReplaceTemporaryLargeBinaryAsync(IOctoSession session, string filename, string contentType, Stream stream, CancellationToken cancellationToken)
Parameters
session
IOctoSession
Session object for transaction handling
filename
String
Filename of the file
contentType
String
Content type of the file
stream
Stream
Stream of the file
cancellationToken
CancellationToken
An optional cancellation token
Returns
Task<OctoObjectId>
Object id of the large binary
DeleteTemporaryLargeBinaryAsync(IOctoSession, OctoObjectId, CancellationToken)
Deletes a large binary file from the repository
Task DeleteTemporaryLargeBinaryAsync(IOctoSession session, OctoObjectId largeBinaryId, CancellationToken cancellationToken)
Parameters
session
IOctoSession
Session object for transaction handling
largeBinaryId
OctoObjectId
Object id of the large binary
cancellationToken
CancellationToken
An optional cancellation token
Returns
DeleteExpiredTemporaryLargeBinariesAsync(IOctoSession, DateTime, CancellationToken)
Deletes all expired temporary large binaries from the repository
Task DeleteExpiredTemporaryLargeBinariesAsync(IOctoSession session, DateTime expiryDateTime, CancellationToken cancellationToken)
Parameters
session
IOctoSession
Session object for transaction handling
expiryDateTime
DateTime
Expiry date time to filter expired binaries
cancellationToken
CancellationToken
An optional cancellation token
Returns
DeleteAllTemporaryLargeBinariesAsync(IOctoSession, CancellationToken)
Deletes all temporary large binaries from the repository
Task DeleteAllTemporaryLargeBinariesAsync(IOctoSession session, CancellationToken cancellationToken)
Parameters
session
IOctoSession
Session object for transaction handling
cancellationToken
CancellationToken
An optional cancellation token
Returns
DownloadLargeBinaryAsync(IOctoSession, OctoObjectId, CancellationToken)
Downloads a large binary file from the repository based on the large binary id
Task<IDownloadStreamHandler> DownloadLargeBinaryAsync(IOctoSession session, OctoObjectId largeBinaryId, CancellationToken cancellationToken)
Parameters
session
IOctoSession
Session object for transaction handling
largeBinaryId
OctoObjectId
Object id of the large binary
cancellationToken
CancellationToken
An optional cancellation token
Returns
Task<IDownloadStreamHandler>
Handler for the download stream
GetTemporaryLargeBinaryAsync(IOctoSession, OctoObjectId, CancellationToken)
Gets a large binary file from the repository based on the large binary id
Task<IBinaryInfo> GetTemporaryLargeBinaryAsync(IOctoSession session, OctoObjectId binaryId, CancellationToken cancellationToken)
Parameters
session
IOctoSession
Session object for transaction handling
binaryId
OctoObjectId
Object id of the large binary
cancellationToken
CancellationToken
Optional cancellation token
Returns
Task<IBinaryInfo>
Binary info of the file including size, content type, etc.
GetTemporaryLargeBinaryAsync(IOctoSession, String, CancellationToken)
Gets a large binary file from the repository based on the filename and binary type
Task<IBinaryInfo> GetTemporaryLargeBinaryAsync(IOctoSession session, string fileName, CancellationToken cancellationToken)
Parameters
session
IOctoSession
Session object for transaction handling
fileName
String
Filename of the file
cancellationToken
CancellationToken
Optional cancellation token
Returns
Task<IBinaryInfo>
Binary info of the file including size, content type, etc.
BulkInsertRtEntitiesAsync(IOctoSession, IEnumerable<RtEntity>, BulkOperationOptions)
Imports a list of runtime entities in bulk.
Task<AggregatedBulkImportResult> BulkInsertRtEntitiesAsync(IOctoSession session, IEnumerable<RtEntity> rtEntityList, BulkOperationOptions options)
Parameters
session
IOctoSession
Session object for transaction handling
rtEntityList
IEnumerable<RtEntity>
List of runtime entities to import
options
BulkOperationOptions
Bulk operation options for the import
Returns
Task<AggregatedBulkImportResult>
Aggregated result of the bulk import operation
BulkRtAssociationsAsync(IOctoSession, IEnumerable<RtAssociation>, BulkOperationOptions)
Imports a list of runtime entities in bulk.
Task<IBulkImportResult> BulkRtAssociationsAsync(IOctoSession session, IEnumerable<RtAssociation> rtAssociations, BulkOperationOptions options)
Parameters
session
IOctoSession
Session object for transaction handling
rtAssociations
IEnumerable<RtAssociation>
List of runtime associations to import
options
BulkOperationOptions
Bulk operation options for the import
Returns
Task<IBulkImportResult>
Aggregated result of the bulk import operation
GetCkTypeGraphAsync(CkId<CkTypeId>)
Gets the construction kit type graph from the cache service
Task<CkTypeGraph> GetCkTypeGraphAsync(CkId<CkTypeId> ckTypeId)
Parameters
ckTypeId
CkId<CkTypeId>
The ck type id
Returns
Exceptions
RuntimeRepositoryException
CkTypeId does not exist in cache