Commit Graph

75 Commits (b2fd1ce0b464c7f364663675e42d96ca3fa2bcfe)

Author SHA1 Message Date
Rick Anderson b2fd1ce0b4
Update streaming Readme /1 (#107)
* Update streaming Readme /1

* Update fundamentals/streaming/README.md
2023-02-03 12:07:44 -10:00
Bruno Oliveira 142267664f
Sample form binding project (#112) 2023-01-26 11:17:17 -10:00
Rick Anderson e34467a7d7
Update README.md 2022-11-07 14:36:47 -10:00
Fiyaz Bin Hasan 5e092f4af1
Update Program.cs (#105) 2022-10-31 12:43:58 -10:00
Rick Anderson 6ce135eded
R l3 (#103)
* update snippets

* update snippets
2022-10-14 16:47:07 -10:00
Rick Anderson 3e4ab6ad48
update snippets (#102) 2022-10-14 14:54:16 -10:00
Rick Anderson c2a3007465
Add more rate limiter samples (#101)
* Add more rate limiter samples

* Add more rate limiter samples
2022-10-14 14:18:37 -10:00
Fiyaz Bin Hasan a3d1c88af2
Rate Limiter Service (#97)
* work

* rename HomeController back to Home2Controller

* call to app.UseRateLimiter()
2022-10-13 11:07:15 -10:00
Jonathan Gilbert 1e03034dd3
Import samples from external repository (#86)
* Replaced stub.txt with the samples from git@github.com:logiclrd/ASPNetCoreStreamingExample.git.

* Reformatted to match .editorconfig.

* Added an exclusion for Properties folder in .gitignore, since this is where launchSettings.json lives.
Added launchSettings.json files.

* Added root menus to AsynchronousWithSystemTextJson and SynchronousWithNewtonsoftJson.
Updated launchSettings.json in each project correspondingly.
Updated Startup.cs to output instructions for the user, since it appears `dotnet run` doesn't actually start a browser.

* Added sample DynamicBinaryStream.

* Added RootNamespace properties to AsynchronousWithSystemTextJson.csproj and SynchronousWithNewtonsoftJson.csproj.

* Corrected folder structure.
Removed LICENSE file imported from external repository.

* Added comment explaining why we create a separate JsonTextWriter for each line in SongLyricsMiddleware.cs.

* Removed unnecessary .gitignore files.

* Apparently, Visual Studio was still doing implicit using statements even though it was turned off in the project file. Now it's not doing them, so this commit adds the using statements that were implicit.

* Converted projects to use so-called "minimal hosting" with all initialization inside Program.cs instead of using a Startup class.

* Updated Microsoft.AspNetCore.Mvc.NewtonsoftJson reference to the latest 7.0.0 prerelease version.

* Delete .gitignore

* Enabled implicit usings in all projects. Removed unnecessary using statements.
Converted all C# source files to file-scoped namespaces.
Corrected cases where namespaces including the solution file name (not committed to the repository) were accidentally used.
Enabled Nullable annotation in SynchronousWithNewtonsoftJson.csproj.

* Lumped all using statements into single blocks.

Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>
2022-10-13 09:34:38 -10:00
Rick Anderson c7eabde31b
Iresult tests (#99)
* add snippet tags to test sample

* add snippet tags
2022-10-12 15:02:51 -10:00
Rick Anderson d5d49a5bcd
add snippet tags to test sample (#96) 2022-10-11 16:18:53 -10:00
Rick Anderson 2da2b854e9
Pd33 (#95)
* add comments

* add comments
2022-10-11 13:35:53 -10:00
Rick Anderson f55abce743
add comments (#94) 2022-10-11 13:32:50 -10:00
Rick Anderson 7feed8800f
IProblemDetailsWriter (#93) 2022-10-11 13:05:14 -10:00
Rick Anderson b0fb314273
Create stub.txt 2022-09-30 16:42:20 -10:00
Rick Anderson c98d7599f5
Create stub.txt 2022-09-30 15:08:33 -10:00
Tom Dykstra 1b539fc4f8
Change names and add snippet tags (#85) 2022-09-30 13:47:01 -10:00
Maarten Balliauw 38d9c10d48
Update rate limiting demo to .NET 7 RC1 (#82) 2022-09-30 11:18:28 -10:00
Samson Amaugo be491effeb
Multipleresultypes (#83) 2022-09-30 11:49:11 -07:00
Samson Amaugo 552819d0b8 edit 2022-09-29 13:42:04 +01:00
Samson Amaugo 65b88b9a91 multipleresulttypes 2022-09-29 13:39:58 +01:00
Rick Anderson e6e2fdc19d
remove auth from tests (#78) 2022-09-28 10:46:15 -10:00
Rick Anderson f31647481e
Update Program.cs 2022-09-27 12:33:20 -10:00
Rick Anderson ae3dc6e0d6
Pd18 (#75)
* fix snip

* add new snippet

* add new snippet
2022-09-27 12:05:38 -10:00
Rick Anderson 0abed56f1a
fix snip (#74) 2022-09-26 17:25:53 -10:00
Rick Anderson 5aef987605
pd17 (#73) 2022-09-26 16:59:19 -10:00
Fiyaz Bin Hasan 3b23fdc72f
work (#72) 2022-09-26 13:56:13 -10:00
Rick Anderson 9194e957b7
update snippets (#69) 2022-09-22 17:26:52 -10:00
Rick Anderson 4061c06d00
add new snippet (#68) 2022-09-22 16:42:19 -10:00
Rick Anderson 839b3d42de
update problem details sample (#67) 2022-09-22 16:12:01 -10:00
Fiyaz Bin Hasan 5dc9ca5902
initial commit (#66) 2022-09-22 06:56:21 -10:00
Rick Anderson 5a31172a61
clean up code (#65)
* clean up code

* clean up code
2022-09-21 12:18:19 -10:00
Rick Anderson 8dd4ff3147
update new controller (#64) 2022-09-21 11:50:56 -10:00
Samson Amaugo 05aa9ab952
Problemdetailsmiddleware (#63)
* added middleware feature

* removed statuscodepages

* formatted code

* Removed unnecessary middleware 😅

* setErrorType from handler

* setErrorType from handlers

* deleted the has path func

* fixed for middleware

* setting for controllers

* fixed iss for controllers 😎

* formatted code 😎

* Removed unnecessary middleware

* edit

* added third controller

* added back code

* code reset
2022-09-21 11:32:33 -10:00
Rick Anderson 76ad1295a5
fix code (#62) 2022-09-20 16:09:47 -10:00
Rick Anderson d93184b0bb
Pd9 (#61)
* Add controller to middleware example

* fix code
2022-09-20 14:54:56 -10:00
Rick Anderson 3d61ef0900
Add controller to middleware example (#59) 2022-09-20 11:07:59 -10:00
Rick Anderson e4ca4dcc09
format snippet (#58) 2022-09-19 17:01:37 -10:00
Rick Anderson 2361e29610
update sample (#57) 2022-09-19 16:27:45 -10:00
Rick Anderson 4f1f7edbd4
fix snippet (#56) 2022-09-19 15:53:13 -10:00
Rick Anderson 42ffdd7650
format problem details (#55) 2022-09-19 15:34:09 -10:00
Rick Anderson d2c6359165
short problems sample (#54) 2022-09-19 14:32:07 -10:00
Rick Anderson 4a82e87929
problem details code clean up (#53) 2022-09-19 14:05:18 -10:00
Samson Amaugo 417877e51e
Problemdetailsmiddleware (#42)
* added middleware feature

* removed statuscodepages

* formatted code

* Removed unnecessary middleware 😅

* setErrorType from handler

* setErrorType from handlers

* deleted the has path func

* fixed for middleware

* setting for controllers

* fixed iss for controllers 😎

* formatted code 😎

* Removed unnecessary middleware
2022-09-14 16:06:37 -10:00
Rick Anderson 2b73a19515
remove record (#44) 2022-09-12 12:48:20 -10:00
Rick Anderson eb9bbe8b26
update records (#43) 2022-09-12 12:11:23 -10:00
Martin Costello 8be68558af
Update [AsParameters] example (#41)
Change to use a struct and a class instead of all being records.
2022-09-11 11:06:49 -10:00
Rick Anderson 3ebbb8baf4
Problem details refactor (#39)
* Problem details refactor

* Problem details refactor

* Problem details refactor

* Problem details refactor

* Problem details refactor
2022-09-09 11:11:17 -10:00
Samson Amaugo 43159fca08
Problemdetailsmiddleware (#40)
* added middleware feature

* removed statuscodepages

* formatted code
2022-09-08 20:14:44 -10:00
Samson Amaugo 49cf47c420
Problemdetailsmiddleware (#38)
* added middleware feature

* removed statuscodepages
2022-09-08 17:47:17 -10:00