/// <summary>
 /// Gets the OpenID protocol instance for the version in a message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <returns>The OpenID protocol instance.</returns>
 internal static Protocol GetProtocol(this IProtocolMessage message)
 {
     Requires.NotNull(message, "message");
     return(Protocol.Lookup(message.Version));
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the OpenID protocol instance for the version in a message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <returns>The OpenID protocol instance.</returns>
 internal static Protocol GetProtocol(this IProtocolMessage message)
 {
     Contract.Requires <ArgumentNullException>(message != null);
     return(Protocol.Lookup(message.Version));
 }
 /// <summary>
 /// Gets the OpenID protocol instance for the version in a message.
 /// </summary>
 /// <param name="message">The message.</param>
 /// <returns>The OpenID protocol instance.</returns>
 internal static Protocol GetProtocol(this IProtocolMessage message)
 {
     ErrorUtilities.VerifyArgumentNotNull(message, "message");
     return(Protocol.Lookup(message.Version));
 }