ServiceRootPathProvider.cs
735 Bytes
namespace CCE.Hosting.Netcore
{
using System.IO;
using Nancy;
/// <summary>
/// Root path provider for basic root folder path of web contents
/// </summary>
/// <seealso cref="Nancy.IRootPathProvider" />
internal class ServiceRootPathProvider : IRootPathProvider
{
/// <summary>
/// The provider of the filesystem path
/// </summary>
private readonly IRootPathProvider provider = new DefaultRootPathProvider();
/// <summary>
/// Returns the root folder path of the current application.
/// </summary>
/// <returns>
/// A <see cref="T:System.String" /> containing the path of the root folder.
/// </returns>
public string GetRootPath()
{
return Path.Combine(this.provider.GetRootPath());
}
}
}