.NET ArangoDB驱动程序的扩展
参见
扩大
努吉特
片段
数据保护
public void ConfigureServices ( IServiceCollection services )
{
services . AddSingleton ( new ArangoContext ( Configuration . GetConnectionString ( " Arango " )));
var dataProtection = services . AddDataProtection ()
. SetApplicationName ( " App " )
. SetDefaultKeyLifetime ( TimeSpan . FromDays ( 30 ));
dataProtection . PersistKey