summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Messaging/IEmbeddedResourceRetrieval.cs
blob: b9a6fd07358bb2d5cee907fe7d284a4741741c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//-----------------------------------------------------------------------
// <copyright file="IEmbeddedResourceRetrieval.cs" company="Andrew Arnott">
//     Copyright (c) Andrew Arnott. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace DotNetOpenAuth {
	using System;

	/// <summary>
	/// An interface that provides URLs from which embedded resources can be obtained.
	/// </summary>
	public interface IEmbeddedResourceRetrieval {
		/// <summary>
		/// Gets the URL from which the given manifest resource may be downloaded by the user agent.
		/// </summary>
		/// <param name="someTypeInResourceAssembly">Some type in the assembly containing the desired resource.</param>
		/// <param name="manifestResourceName">Manifest name of the desired resource.</param>
		/// <returns>An absolute URL.</returns>
		Uri GetWebResourceUrl(Type someTypeInResourceAssembly, string manifestResourceName);
	}
}