Граф коммитов

430 Коммитов

Автор SHA1 Сообщение Дата
Tyler James Leonhardt 3cbb399671 Switch to pattern matching and support all other TypedData types (#39) 2018-09-07 16:06:42 -07:00
Tyler James Leonhardt db89422a5f
Renames Azure.Functions.PowerShell.Worker to Microsoft.Azure.Functions.PowerShellWorker (#35) 2018-09-07 11:43:15 -07:00
Dongbo Wang 4eb82daea4
Update the example and fix two bugs in worker (#34)
1. Add a check to see if there is anything returned before getting the last item.
2. When deserializing JSON, return a case-insensitive Hashtable instance, so `<blah>.Name` works for both `"name": "Joe"` and `"Name": "Joe"`.
2018-09-07 11:39:17 -07:00
Dongbo Wang d16d1a9231
Fix the indentation and casing in host.json (#33) 2018-09-06 23:33:39 -07:00
Tyler James Leonhardt be26102eec
add ThirdPartyNotices (#32) 2018-09-06 18:37:58 -07:00
Tyler James Leonhardt 2606622fab Add the official README.md with steps (#28) 2018-09-06 15:25:35 -07:00
Tyler Leonhardt fada58fb6d host.json new format 2018-09-06 14:00:11 -07:00
Tyler James Leonhardt 7faeea5d39
Nugetize (#26)
* nugetize the worker

* Assert.Equal to Assert.Single

* Added PackageCopyToOutput

* Add new line at end

* added Product
2018-09-05 09:09:12 -07:00
Tyler James Leonhardt 274e079e3c
update configs for beta36+ of core tools and add windows if check (#23)
* update configs for beta36 of core tools and add windows if check

* add a comment to explain why execution policy is needed
2018-08-31 17:01:56 -07:00
Dongbo Wang fec8b112ed
Remove an unused namespace (#25) 2018-08-31 15:03:02 -07:00
Dongbo Wang 4af878fd0c
Refactor code base to remove dependency on 'Microsoft.Extensions.Logging' and merge 'Function' with 'FunctionInfo' (#22)
- Since we don't pass the logger to the user, it doesn't need to implement `ILogger`. Removing this dependency reduce 8 assemblies from the publish folder.
- The type `Function` is not really needed, so merge it to `FunctionInfo`.
- Make `Params`, `Headers` and `Query` in `HttpRequestContext` case insensitive. So `$req.Query.Name` works for `?name=Joe`.
2018-08-31 14:28:19 -07:00
Tyler James Leonhardt 6583e49362
Switch to module approach (#20)
* Switch to module approach

* misc comment updates

* resolve rebase conflicts

* address dongbo's feedback

* Add new line to end

* use Import-Module and misc feedback

* just set the module path

* fully qualified, no more useLocalScopes
2018-08-30 17:09:23 -07:00
Dongbo Wang b6b8e0d280
Re-organize the project layout and refactor request processing code (#21) 2018-08-30 12:17:08 -07:00
Tyler James Leonhardt 58924c8609
Stream handling, param block, PowerShellManager (#11)
* param block is back and fix multiple execution issue

* reworked PowerShellExtension methods into a PowerShellManager object

* move InitPowerShell into PowerShellManager

* have all logging use correct index in collection

* switch DataAdded to DataAdding

* address Dongbo's feedback

* new lines and fixed Set-ExecutionPolicy

* made timer threadstatic and deleted StartupArgumentsTests

* switch to ThreadStatic stopwatch

* address Dongbo's feedback

* remove messaging

* added headers to a few files

* Add new line to the end

* change to Write-Information
2018-08-29 16:01:17 -07:00
Tyler James Leonhardt 195a7b644b
initial commit of module (#14)
* initial commit of module

* address feedback and move module into worker

* address Dongbo's feedback

* remove psd1 fields and change Set logic

* don't expose vars in psd1

* alpha sort functions

* helper function refactoring
2018-08-29 15:54:29 -07:00
Dongbo Wang dba9cfd1e2
Re-organize the project layout (#13) 2018-08-29 12:26:42 -07:00
Dongbo Wang bea420ce3b
Update argument parsing and make namespace name consistent (#12) 2018-08-28 14:19:15 -07:00
Tyler James Leonhardt f8ed37644b
Merge pull request #9 from Azure/master
make dev up to date
2018-08-27 14:33:15 -07:00
Tyler Leonhardt ffd4aa3789 added a bunch of tests 2018-08-24 18:08:51 -07:00
Tyler Leonhardt ada91c6fcb alpha sort all code 2018-08-24 11:07:34 -07:00
Tyler Leonhardt 615ebcdd47 misc syntax sugar 2018-08-24 10:35:24 -07:00
Tyler Leonhardt 93fdbd9062 organize usings and add headers 2018-08-24 10:10:29 -07:00
Tyler Leonhardt e395476fea added a bunch of comments 2018-08-23 19:25:45 -07:00
Tyler Leonhardt 91b2bf8516 Change ToTypedData logic to match Host 2018-08-22 13:49:42 -07:00
Tyler Leonhardt f22f6ef98b magic variables go to bindings, entry point is acknowledged 2018-08-22 12:53:56 -07:00
Tyler Leonhardt 3681e1f272 improved layout and handling of bindings 2018-08-13 13:29:07 -07:00
Dongbo Wang e2678889eb Initial check-in for the PowerShell language worker 2018-08-08 23:28:56 -07:00
Microsoft Open Source b01a685490 Initial commit 2018-07-27 09:17:19 -07:00
Microsoft Open Source a5ead1ae65 Initial commit 2018-07-27 09:17:18 -07:00
Microsoft GitHub User ea6074f134
Initial commit 2018-07-27 09:17:15 -07:00