Skip to main content

Class InMemoryProtectionProvider

Namespace: Aurigma.DesignAtoms.Storage.Repositories.Protectors
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class InMemoryProtectionProvider : IRepositoryFileProtectionProvider

Inheritance: System.Object -> InMemoryProtectionProvider

Implements

Inherited Members

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Constructors

InMemoryProtectionProvider

public InMemoryProtectionProvider()

Methods

IsProtected

public bool IsProtected(string fileId)
Parameters
TypeNameDescription
System.StringfileId
Returns

System.Boolean

IsProtectedAsync

public Task<bool> IsProtectedAsync(string fileId)
Parameters
TypeNameDescription
System.StringfileId
Returns

System.Threading.Tasks.Task<System.Boolean>

TrySetProtection

public bool TrySetProtection(string fileId, bool isProtected)
Parameters
TypeNameDescription
System.StringfileId
System.BooleanisProtected
Returns

System.Boolean

TrySetProtectionAsync

public Task<bool> TrySetProtectionAsync(string fileId, bool isProtected)
Parameters
TypeNameDescription
System.StringfileId
System.BooleanisProtected
Returns

System.Threading.Tasks.Task<System.Boolean>

GetReferenceCount

public int GetReferenceCount(string fileId)
Parameters
TypeNameDescription
System.StringfileId
Returns

System.Int32

ClearProtection

public void ClearProtection(string fileId)
Parameters
TypeNameDescription
System.StringfileId

ClearAll

public void ClearAll()

GetProtectedFiles

public IEnumerable<string> GetProtectedFiles()
Returns

System.Collections.Generic.IEnumerable<System.String>

Was this page helpful?