-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding internal filewatch logic to efficiently reload functions when …
…changed
- Loading branch information
Showing
19 changed files
with
260 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,34 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
using System; | ||
|
||
namespace Microsoft.Azure.WebJobs.Script | ||
{ | ||
public class ScriptHostConfiguration | ||
{ | ||
public ScriptHostConfiguration() | ||
{ | ||
HostConfig = new JobHostConfiguration(); | ||
WatchFiles = true; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the <see cref="JobHostConfiguration"/>. | ||
/// </summary> | ||
public JobHostConfiguration HostConfig { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the path to the script function directory. | ||
/// </summary> | ||
public string RootPath { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value dicating whether the <see cref="ScriptHost"/> should | ||
/// monitor file for changes (default is true). When set to true, the host will | ||
/// automatically react to source/config file changes. When set to false no file | ||
/// monitoring will be performed. | ||
/// </summary> | ||
public bool WatchFiles { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.