DataProtectorBinaryTokenExtensions.ProtectBinary method
namespace: Serenity assembly: Serenity.Net.Web
Encrypts a token populated by the given callback and returns the encrypted token in base64 URL encoded format
public static string ProtectBinary(this IDataProtector protector, Action<BinaryWriter> callback)
| parameter | description |
|---|---|
| protector | Data protector |
| callback | Callback to populate the writer |