blob: ba328b1f46c8b5679312c446a1800d9c3ed6fe2e (
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
29
30
31
32
|
//-----------------------------------------------------------------------
// <copyright file="IAuthorizationServer.cs" company="Andrew Arnott">
// Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System.Diagnostics.Contracts;
namespace DotNetOpenAuth.OAuthWrap {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotNetOpenAuth.OAuth.ChannelElements;
[ContractClass(typeof(IAuthorizationServerContract))]
public interface IAuthorizationServer {
IConsumerDescription GetClient(string clientIdentifier);
}
[ContractClassFor(typeof(IAuthorizationServer))]
internal abstract class IAuthorizationServerContract : IAuthorizationServer {
private IAuthorizationServerContract() {
}
IConsumerDescription IAuthorizationServer.GetClient(string clientIdentifier) {
Contract.Ensures(Contract.Result<IConsumerDescription>() != null);
throw new NotImplementedException();
}
}
}
|