C# Class SIL.FieldWorks.FDO.DomainServices.ProjectLockingService

Provides methods for locking/unlocking a project.
Exibir arquivo Open project: sillsdev/FieldWorks

Public Methods

Method Description
CanLockProject ( FdoCache cache ) : bool

This method will check if the project is an fwdata project, that can be locked.

IsProjectLocked ( string projectPath ) : bool

Determines if the project file at the specified path is locked.

LockCurrentProject ( FdoCache cache ) : void

This method will lock the current project in the cache given this service

UnlockCurrentProject ( FdoCache cache ) : void

This method will unlock the current project in the cache given this service.

Method Details

CanLockProject() public static method

This method will check if the project is an fwdata project, that can be locked.
public static CanLockProject ( FdoCache cache ) : bool
cache FdoCache
return bool

IsProjectLocked() public static method

Determines if the project file at the specified path is locked.
public static IsProjectLocked ( string projectPath ) : bool
projectPath string
return bool

LockCurrentProject() public static method

This method will lock the current project in the cache given this service
public static LockCurrentProject ( FdoCache cache ) : void
cache FdoCache
return void

UnlockCurrentProject() public static method

This method will unlock the current project in the cache given this service.
public static UnlockCurrentProject ( FdoCache cache ) : void
cache FdoCache
return void