Commit Graph

40 Commits (505b4679b70f023bec67b9283239d4993521a04d)

Author SHA1 Message Date
Buddhika Chathuranga 505b4679b7 Remove rethrow 2020-05-29 17:11:06 +05:30
Buddhika Chathuranga 66dfe7b43c
Merge branch 'master' into xml_schema_validation 2020-05-26 21:38:00 +05:30
NextTurn f260d7e5d9 Reorganize interop codes 2020-05-19 00:23:09 +08:00
Buddhika Chathuranga fd961fec4d Validatation method seperated 2020-05-12 12:19:13 +05:30
Buddhika Chathuranga a56f2290e9 Redundant codes removed. 2020-05-11 23:33:12 +05:30
Buddhika Chathuranga a2740d5eb9 FromXML tweak to validate XML schema
ValidateAndLoadXMLSchemaUpdated
2020-05-11 00:49:35 +05:30
NextTurn 09cdb0a0ec
Support <startarguments> and <stoparguments> 2020-05-09 11:49:25 +08:00
Buddhika Chathuranga ea74b8e5ab ValidateAndLoadXmlSchemaTest updated. 2020-04-30 12:17:16 +05:30
Buddhika Chathuranga 6496b97108 ValidateAndLoadXmlSchemaTest updated with new XmlReader 2020-04-24 09:52:48 +05:30
Buddhika Chathuranga a9b5c50a67 ValidateAndLoadXMLSchema test added 2020-04-22 11:30:32 +05:30
Buddhika Chathuranga 17524cd391 Rethrow resolved 2020-04-13 11:21:05 +05:30
Buddhika Chathuranga 6140e9fe56
Update src/Core/WinSWCore/ServiceDescriptor.cs
Co-Authored-By: Next Turn <45985406+NextTurn@users.noreply.github.com>
2020-04-13 11:06:07 +05:30
Buddhika Chathuranga 5821bd9b92 XML Schema embedded 2020-04-13 09:40:50 +05:30
Oleg Nenashev 9bae4caf90
Merge pull request #361 from NextTurn/expand
Ensure that environment variables are loaded before resolving configurations
2020-04-06 09:40:58 +02:00
Buddhika Chathuranga 2bc768e92f Validatoin Exception - Warning removed 2020-04-04 16:52:07 +05:30
NextTurn f83916d430
Load environment variables first 2020-03-31 13:45:51 +08:00
NextTurn 2c22e62aa0
Fix default domain name 2020-03-31 08:40:25 +08:00
Buddhika Chathuranga c4c32a8778 XML read and validate combined 2020-03-30 22:05:10 +05:30
Buddhika Chathuranga b96d32789a Read - next node validation fixed 2020-03-30 18:41:46 +05:30
Buddhika Chathuranga b38a664128 XML schema validations added 2020-03-29 21:40:26 +05:30
NextTurn 23c2202406
Support security descriptor string 2020-03-28 14:50:19 +08:00
NextTurn da71f5dd83
Annotate more nullable variables 2020-02-06 10:55:13 +08:00
NextTurn b3d4b466aa
Don't print stack trace to console for invalid config files 2020-01-24 15:42:07 +08:00
NextTurn 93b2212774
Suppress warnings for confusing designs 2020-01-20 12:19:07 +08:00
NextTurn 5be8708701
Annotate WinSWCore for nullable reference types 2020-01-20 12:18:58 +08:00
NextTurn 08bae2a682
Use built-in types 2020-01-14 14:05:03 +08:00
NextTurn 9808ae88e8
Clean up styles 2020-01-14 14:04:25 +08:00
jeacott1 e2bf78f1df adds a <hidewindow>true</hidewindow> config switch
so that launching bat files on legacy machines
running Interactive Services Detection don't balk.
2019-05-28 13:25:17 +09:30
Dinz 9014f38b9c Added Support for the log appender roll-by-size-time to zip older files (#259)
* Introduced the following new elements.
1. logname - you can override the name of the log file rather than using the EXE name, this means you don't have to call your EXE a different name, just name the winsw exe different. Default's the name to the EXE as before.
2. outfiledisabled - you can disable writing to the out file. Defaults to false.
3. errfiledisabled - you can disable writing to the error file. Defaults to false.
4. outfilepattern - you can choose the pattern of the out file. Defaults to .out.log.
5. errfilepattern - you can choos the pattern of the error file. Defaults to .err.log.

* Downgraded from C#7.0 syntax.

* Applied reviewers comment

* not required

* removed the key

* Added unit test for new fields logname, outfiledisabled, errfiledisabled and errfilepattern.

Created a new appender called roll-by-size-time see class RollingSizeTimeLogAppender, this appender supports rolling by time and size and rolling at a specific time each day.

Added unit test for the new appender.

Added a new option testwait which is similar to test but waits for the user to press any key before calling the stop method.

* Update loggingAndErrorReporting.md

* Cannot use $ string.format syntax, downgraded code to string.format.

* Another syntax found of $

* Fixed a unit tests

* Added support to zip files.

* Added error handling

* Removed the zip call at startup.

* Fix issue with UTC

* Update loggingAndErrorReporting.md

Documented the new fields zipolderthannumdays and zipdateformat

* Update loggingAndErrorReporting.md

* Applied Code review

* Fixed a BST bug

* Added zip lib
2018-06-19 18:39:03 +02:00
Dinz 221d30f271 Introduced the following new elements. (#247)
* Introduced the following new elements.
1. logname - you can override the name of the log file rather than using the EXE name, this means you don't have to call your EXE a different name, just name the winsw exe different. Default's the name to the EXE as before.
2. outfiledisabled - you can disable writing to the out file. Defaults to false.
3. errfiledisabled - you can disable writing to the error file. Defaults to false.
4. outfilepattern - you can choose the pattern of the out file. Defaults to .out.log.
5. errfilepattern - you can choos the pattern of the error file. Defaults to .err.log.

* Downgraded from C#7.0 syntax.

* Applied reviewers comment

* not required

* removed the key

* Added unit test for new fields logname, outfiledisabled, errfiledisabled and errfilepattern.

Created a new appender called roll-by-size-time see class RollingSizeTimeLogAppender, this appender supports rolling by time and size and rolling at a specific time each day.

Added unit test for the new appender.

Added a new option testwait which is similar to test but waits for the user to press any key before calling the stop method.

* Update loggingAndErrorReporting.md

* Cannot use $ string.format syntax, downgraded code to string.format.

* Another syntax found of $

* Fixed a unit tests
2017-09-18 18:22:01 +02:00
Dos Moonen 138bca822d Noticed a small 'error' and fixed it 2017-06-27 09:58:04 +02:00
Oleg Nenashev d192c03638 #183 - Add core logic for the DelayedStart option support (#205)
* #183 - Add core logic for the DelayedStart option support

* #183 - Add unit tests

* #183 - Update documentation and the configuration sample

* #183 - Use API calls to set the DelayedAutoStart flag as @jtnord proposed

* #183 - Refactor the project to use `delayedAutoStart`
2017-04-18 23:23:52 +02:00
Oleg Nenashev 790b3a6541 Finalize the Download Command changes (#203)
* Refactor parameter parsing in Download.cs, add more checks

* Handle Download#unsecureAuth as boolean

* Parse Enums in a case-insensitive mode, propagate error correctly

* Add tests for the newly introduced functionality

* Update the configuration sample to reflect the recent changes

* Update the sample text according to the proposal from @nightman68
2017-04-13 16:49:59 +02:00
Oleg Nenashev d665afc91c Fix #178 - Use proper default value when handling Arguments 2017-01-04 23:15:42 +01:00
Oleg Nenashev 9399544ef5 Fix #159 - Streamline TimeSpan parsing logic, get rid of the buggy code 2016-12-29 11:02:24 +01:00
Oleg Nenashev 67bfc6bcd2 Fix #171 - Handle stopexecutable as an optional property in ServiceDescriptor
Tests will be pushed later
2016-12-23 22:24:24 +01:00
Oleg Nenashev 14f32cd309 Decouple Default Settings to a separate publicly accessible class.
Required for tests.
2016-12-23 21:18:59 +01:00
Oleg Nenashev 5e835479ae Generalize usage of System environment variables for processes 2016-11-30 12:36:03 +01:00
Oleg Nenashev 80295db8d7 Merge branch 'master' into winsw-2.0
Conflicts:
	winsw.csproj
2016-11-10 13:25:42 +01:00
Oleg Nenashev 3af1f72658 Support merging plugins into winsw.exe executable
* Decouple Core components into WinSWCore projects.
* Use ILMerge to merge everything (inc. Plugins) into a single executable

TODO: API Should be refactored before the publishing
TODO: check signing procedure

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>

Conflicts:
	src/Core/ServiceWrapper/winsw.csproj

Conflicts:
	src/Core/ServiceWrapper/Main.cs
	src/winsw.sln
2015-02-08 14:28:15 +03:00