Welcome to mirror list, hosted at ThFree Co, Russian Federation.

7.0-preview5_Microsoft.AspNetCore.DataProtection.md « Microsoft.AspNetCore.App « preview5 « api-diff « preview « 7.0 « release-notes - github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 203479c2cfb4813a61c49a596f6cc1f024e3e64d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Microsoft.AspNetCore.DataProtection

``` diff
 namespace Microsoft.AspNetCore.DataProtection {
     public static class DataProtectionAdvancedExtensions {
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         public static byte[] Protect(this ITimeLimitedDataProtector protector, byte[] plaintext, TimeSpan lifetime);
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         public static string Protect(this ITimeLimitedDataProtector protector, string plaintext, DateTimeOffset expiration);
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         public static string Protect(this ITimeLimitedDataProtector protector, string plaintext, TimeSpan lifetime);
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         public static string Unprotect(this ITimeLimitedDataProtector protector, string protectedData, out DateTimeOffset expiration);
     }
     public static class DataProtectionCommonExtensions {
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         public static string Protect(this IDataProtector protector, string plaintext);
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         public static string Unprotect(this IDataProtector protector, string protectedData);
     }
     public interface IDataProtector : IDataProtectionProvider {
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         byte[] Protect(byte[] plaintext);
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         byte[] Unprotect(byte[] protectedData);
     }
     public interface IPersistedDataProtector : IDataProtectionProvider, IDataProtector {
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         byte[] DangerousUnprotect(byte[] protectedData, bool ignoreRevocationErrors, out bool requiresMigration, out bool wasRevoked);
     }
     public interface ITimeLimitedDataProtector : IDataProtectionProvider, IDataProtector {
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         byte[] Protect(byte[] plaintext, DateTimeOffset expiration);
-        [RequiresUnreferencedCode(TrimmerWarning.Message)]
         byte[] Unprotect(byte[] protectedData, out DateTimeOffset expiration);
     }
 }
```