summaryrefslogtreecommitdiffstats
path: root/projecttemplates/RelyingPartyLogic/Model.ClientAuthorization.cs
blob: 3d7646af1ed3f30ae4f9d4aa39d7fb3561a0ad65 (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
//-----------------------------------------------------------------------
// <copyright file="Model.ClientAuthorization.cs" company="Andrew Arnott">
//     Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace RelyingPartyLogic {
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Web;
	using DotNetOpenAuth.OAuth.ChannelElements;

	public partial class ClientAuthorization {
		/// <summary>
		/// Initializes a new instance of the <see cref="IssuedToken"/> class.
		/// </summary>
		public ClientAuthorization() {
			this.CreatedOnUtc = DateTime.UtcNow;
		}

		partial void OnCreatedOnUtcChanging(DateTime value) {
			Utilities.VerifyThrowNotLocalTime(value);
		}
	}
}