public static RevokeKeyEntity Create(string pubKey, RevokeKeyType type, string privateKey) { return(new RevokeKeyEntity { BsonId = pubKey, Type = type, PrivateKey = privateKey }); }
public Task AddRevokeKey(string pubkey, RevokeKeyType type, string privateKey = null) { return(_table.InsertAsync(RevokeKeyEntity.Create(pubkey, type, privateKey))); }