blob: aab1fc13dd9c0a430b278afbafdfca9f39fc1239 (
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
27
28
|
//-----------------------------------------------------------------------
// <copyright file="Model.IssuedToken.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 IssuedToken {
/// <summary>
/// Initializes a new instance of the <see cref="IssuedToken"/> class.
/// </summary>
public IssuedToken() {
this.CreatedOnUtc = DateTime.UtcNow;
}
partial void OnCreatedOnUtcChanging(DateTime value) {
if (value.Kind != DateTimeKind.Utc) {
throw new ArgumentException("DateTime must be given in UTC time.");
}
}
}
}
|