-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support For Multiple Public Folders #79
Comments
Hi, It would be good to be able to opt out from using the public folder functionlity. One issue with it is the following: Maybe there is a way to disable it allready in the current release? |
In the current release I'm afraid there is no way to opt out. However, I'm in the middle of working on this feature right now, and this is already (albeit somewhat unintentionally) in there. Check it out in the public-folder branch if you'd like. The In short: Don't ever reference There are some unit tests around this behavior, too, to make sure I don't accidentally change the behavior. I'm glad someone actually wants this rather than me just thinking it would be a nice-to-have...! |
@mattiasclaesson Out of curiosity, are you using Grapevine in your Trionic project? |
@scottoffen No its for another project that needed a REST interface. Working with windows services and its limited service accounts it quite painfull. |
Adds support to RestServer for multiple public folders, and rearranges logic between RestServer and Router for actual routing. Adds additional unit tests for Grapevine.Serve namespace. See issue #79 for more detail.
Adds support to RestServer for multiple public folders, and rearranges logic between RestServer and Router for actual routing. Adds additional unit tests for Grapevine.Serve namespace. See issue #79 for more detail.
Current behavior is that implementations of
IServerSettings
have a public property that is a single instance ofPublicFolder
, that automatically creates the expected folder if it does not exist.Desired behavior is that implementations of
IServerSettings
have a public property that is a collection ofPublicFolder
instances, and that theIServerSettings.PublicFolder
property is used to manipulate the first item in this collection.Implementation Details
IServerSettings.PublicFolders
CollectionPublicFolders
collection is a property ofIServerSettings
PublicFolders
collection is empty by defaultPublicFolder
instances can be added to the collection at any timePublicFolder
instances can be removed from the collection at any timeIServerSettings.PublicFolder
ObjectPublicFolder
property gets/sets the first item in thePublicFolders
collectionPublicFolder
public accessor creates the defaultPublicFolder
and puts it in the collection upon first access when thePublicFolders
collection is emptyPublicFolder
Class\public
in the current directoryindex.html
PathInfo
for the file and the value is the fully qualified path to the file on the file systemEach instance has a public propertyThis is a property ofbool:IncludeSubfolders
that defaults to TrueFileSystemWatcher
.The text was updated successfully, but these errors were encountered: