Added missing method from IHost interface.

This commit is contained in:
Dario Solera 2011-01-05 15:19:40 +00:00
parent 6b9dd4150b
commit c639774f73
2 changed files with 23 additions and 0 deletions

View file

@ -847,6 +847,20 @@ namespace ScrewTurn.Wiki {
return done;
}
/// <summary>
/// Overrides the public directory.
/// </summary>
/// <param name="fullPath">The new full path of the public directory.</param>
/// <exception cref="ArgumentNullException">If <paramref name="fullPath"/> is <c>null</c>.</exception>
/// <exception cref="ArgumentException">If <paramref name="fullPath"/> is empty.</exception>
/// <exception cref="InvalidOperationException">If it's too late to override the public directory.</exception>
public void OverridePublicDirectory(string fullPath) {
if(fullPath == null) throw new ArgumentNullException("fullPath");
if(fullPath == "") throw new ArgumentException("Full Path cannot be empty", "fullPath");
Settings.OverridePublicDirectory(fullPath);
}
/// <summary>
/// Event fired whenever an activity is performed on a User Account.
/// </summary>