summaryrefslogtreecommitdiffstats
path: root/projecttemplates/WebFormsRelyingParty/Model.IssuedRequestToken.cs
blob: 08378deb26cc75e13d93996a4f1183166aa74a9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace WebFormsRelyingParty {
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Web;
	using DotNetOpenAuth.OAuth.ChannelElements;

	public partial class IssuedRequestToken : IServiceProviderRequestToken {
		public Uri Callback {
			get { return this.CallbackAsString != null ? new Uri(this.CallbackAsString) : null; }
			set { this.CallbackAsString = value != null ? value.AbsoluteUri : null; }
		}

		Version IServiceProviderRequestToken.ConsumerVersion {
			get { return this.ConsumerVersionAsString != null ? new Version(this.ConsumerVersionAsString) : null; }
			set { this.ConsumerVersionAsString = value != null ? value.ToString() : null; }
		}

		string IServiceProviderRequestToken.ConsumerKey {
			get { return this.Consumer.ConsumerKey; }
		}
	}
}