diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-18 09:53:32 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-18 11:43:53 -0800 |
commit | 1dc7805c0cea4f94760250a597fc7a980f4c377b (patch) | |
tree | 28d392725f0235eb53c9ab2f09c598cb70c10947 /projecttemplates/RelyingPartyLogic/Model.cs | |
parent | 4728b81b32252207b20abd21b3b2f8e969b63b61 (diff) | |
download | DotNetOpenAuth-1dc7805c0cea4f94760250a597fc7a980f4c377b.zip DotNetOpenAuth-1dc7805c0cea4f94760250a597fc7a980f4c377b.tar.gz DotNetOpenAuth-1dc7805c0cea4f94760250a597fc7a980f4c377b.tar.bz2 |
Added custom database store for nonces and associations and wired it up to the OAuth SP and OpenID RP in the project template.
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/Model.cs')
-rw-r--r-- | projecttemplates/RelyingPartyLogic/Model.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/projecttemplates/RelyingPartyLogic/Model.cs b/projecttemplates/RelyingPartyLogic/Model.cs new file mode 100644 index 0000000..10c1518 --- /dev/null +++ b/projecttemplates/RelyingPartyLogic/Model.cs @@ -0,0 +1,32 @@ +//----------------------------------------------------------------------- +// <copyright file="Model.cs" company="Andrew Arnott"> +// Copyright (c) Andrew Arnott. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace RelyingPartyLogic { + using System; + using System.Collections.Generic; + using System.Data; + using System.Data.Common; + using System.Data.EntityClient; + using System.Data.Objects; + using System.Linq; + using System.Text; + + public partial class DatabaseEntities { + /// <summary> + /// Clears the expired nonces. + /// </summary> + internal void ClearExpiredNonces() { + this.ExecuteCommand("ClearExpiredNonces"); + } + + /// <summary> + /// Clears the expired associations. + /// </summary> + internal void ClearExpiredAssociations() { + this.ExecuteCommand("ClearExpiredAssociations"); + } + } +} |