mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 18:27:21 +00:00
Moved all extension methods into extension blocks (#1155)
This commit is contained in:
1 parent
acc7d09fa2
commit
c0a75f39ac
138 files changed
+5884
-4954
No files matched your search
@@ -2,7 +2,13 @@ namespace AIStudio.Tools;
|
||||
|
||||
public static class EncryptedTextExtensions
|
||||
{
|
||||
public static async Task<EncryptedText> Encrypt(this string data, Encryption encryption) => await encryption.Encrypt(data);
|
||||
extension(string data)
|
||||
{
|
||||
public async Task<EncryptedText> Encrypt(Encryption encryption) => await encryption.Encrypt(data);
|
||||
}
|
||||
|
||||
public static async Task<string> Decrypt(this EncryptedText encryptedText, Encryption encryption) => await encryption.Decrypt(encryptedText);
|
||||
extension(EncryptedText encryptedText)
|
||||
{
|
||||
public async Task<string> Decrypt(Encryption encryption) => await encryption.Decrypt(encryptedText);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user