Added missing method from IHost interface.
This commit is contained in:
parent
6b9dd4150b
commit
c639774f73
2 changed files with 23 additions and 0 deletions
14
Core/Host.cs
14
Core/Host.cs
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue