Skip to content

MediaMaticFilesourceRepositoryBase ​

Namespace: MJCZone.MediaMatic.AspNetCore.Repositories

Assembly: MJCZone.MediaMatic.AspNetCore

Summary ​

Base class for implementations of IMediaMaticFilesourceRepository.

Inheritance ​

Implemented Interfaces:

abstract public

Note: This is an abstract base class. Concrete implementations can be found in provider-specific namespaces.

Contents ​

Methods (14)

Methods ​

MethodSummary
Initialize
AddFilesourceAsync
FilesourceExistsAsync
GetConnectionStringAsync
GetFilesourceAsync
GetFilesourcesAsync
RemoveFilesourceAsync
UpdateFilesourceAsync
EncryptConnectionStringEncrypts a connection string for secure storage.
DecryptConnectionString/// Decrypts an encrypted connection string for internal use.
GetType
ToString
Equals
GetHashCode

Initialize ​

csharp
void Initialize()

AddFilesourceAsync ​

csharp
Task<bool> AddFilesourceAsync()

Returns ​

Type: Task<bool>

FilesourceExistsAsync ​

csharp
Task<bool> FilesourceExistsAsync()

Returns ​

Type: Task<bool>

GetConnectionStringAsync ​

csharp
Task<string?> GetConnectionStringAsync()

Returns ​

Type: Task<string?>

GetFilesourceAsync ​

csharp
Task<FilesourceDto?> GetFilesourceAsync()

Returns ​

Type: Task<FilesourceDto?>

GetFilesourcesAsync ​

csharp
Task&lt;List&lt;FilesourceDto&gt;&gt; GetFilesourcesAsync()

Returns ​

Type: Task<List<FilesourceDto>>

RemoveFilesourceAsync ​

csharp
Task&lt;bool&gt; RemoveFilesourceAsync()

Returns ​

Type: Task&lt;bool&gt;

UpdateFilesourceAsync ​

csharp
Task&lt;bool&gt; UpdateFilesourceAsync()

Returns ​

Type: Task&lt;bool&gt;

EncryptConnectionString ​

Encrypts a connection string for secure storage.

csharp
string EncryptConnectionString(string connectionString)

Parameters ​

  • connectionString (string) - The plain text connection string.

Returns ​

Type: string

The encrypted connection string.

DecryptConnectionString ​

/// Decrypts an encrypted connection string for internal use.

csharp
string DecryptConnectionString(string encryptedConnectionString)

Parameters ​

  • encryptedConnectionString (string) - The encrypted connection string.

Returns ​

Type: string

The decrypted plain text connection string.

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()