Commit Graph

283 Commits (main)

Author SHA1 Message Date
Wade Pickett 12e7ec6d12 8.0 Update SignalRWebpack 2023-03-16 15:36:32 -07:00
Fiyaz Bin Hasan 930a0060b7
Basic JSON APIs sample 2023-03-15 19:49:45 -07:00
Rick Anderson 50c262f0ba
Create readme.txt 2023-03-14 11:46:52 -10:00
Bill Wagner fd390d3ced
run quest nightly. (#130)
Quest runs nightly, rather than on each label update.

The following changes make that happen:

- The bulk action runs once a day, at a hopefully convenient time.
- The single item workflow runs only in response to a workflow dispatch event (user started)
- For security reasons, limit the permissions to write *issues*, not *contents*
2023-03-09 15:10:03 -10:00
Rick Anderson 2b54120292
move code snippets around (#129) 2023-03-02 14:27:19 -10:00
Rick Anderson 75c749ddce
Update Create.cshtml.cs 2023-03-02 14:07:32 -10:00
Samson Amaugo 62c34e379a
Razor model error (#128)
* scaffolded project

* added contact page

* added model state error for razor pages

* changed key

* formatted code
2023-03-01 09:38:22 -10:00
Samson Amaugo 8839b50e6a
Model state error2 (#127)
* added check for shortname

* removed some files

* little edit to shortname check

* added shortname

* added comment

* changes

* added shortname 2

* added binding for shortname
2023-02-28 11:45:50 -10:00
Samson Amaugo 87fac0e5d4
added check for shortname (#126) 2023-02-28 08:05:17 -10:00
Rick Anderson 309298fea4
Create readme.txt 2023-02-28 08:03:47 -10:00
Rick Anderson 472dbc6702
Update ContactsController.cs 2023-02-27 14:48:12 -10:00
Rick Anderson ea5e31ceac
add snippet tag (#124) 2023-02-27 14:45:55 -10:00
Rick Anderson d77c841f9c
Fix phone number error (#123) 2023-02-27 14:38:40 -10:00
Bill Wagner 21cd5d1312
Install seQuester into the aspnet samples repo (#121)
This adds the docs-tools seQuester into the ASPNETCore docs samples repo.

@Rick-Anderson You'll need to configure the same secrets as the ASP.NET Core docs repo for this to work correctly.
2023-02-27 08:23:01 -10:00
Rick Anderson 83fdc358dd
fix possible null (#118)
* fix possible null

* fix possible null
2023-02-25 18:26:20 -10:00
Rick Anderson c21b6552e8
Rick a/model state/sammy (#120)
* Scaffolded MVC Project

* Added ModelStateError Easy handling

* formatted project

* commented out modelstateerror handling

* uncommented out modelstateerror handling

* extra comment

* code cleanup

---------

Co-authored-by: Samson Amaugo <sammychinedu2ky@gmail.com>
2023-02-25 08:05:15 -10:00
Günther Foidl 5540e74e93
Added sample for a timed hosted service (#117)
* Added project

* TimedHostedService

* Use Host.CreateApplicationBuilder

Co-authored-by: Stephen Halter <halter73@gmail.com>

---------

Co-authored-by: Stephen Halter <halter73@gmail.com>
2023-02-24 14:08:18 -10:00
Samson Amaugo 9d1ae8cc04
Sample Code for IResultImplementations (#115)
* created projected

* added in memory DB

* IResultImplementation

* removed unused code

* Update fundamentals/minimal-apis/samples/IResultImplementation/Tests/IResultImplementationTest.cs

Co-authored-by: Bruno Oliveira <brunolins16@users.noreply.github.com>

* Update fundamentals/minimal-apis/samples/IResultImplementation/Tests/IResultImplementationTest.cs

Co-authored-by: Bruno Oliveira <brunolins16@users.noreply.github.com>

* added extra test

---------

Co-authored-by: Bruno Oliveira <brunolins16@users.noreply.github.com>
2023-02-17 11:11:51 -10:00
Rick Anderson a62c969115
Create RemoveMe.txt 2023-02-16 12:03:18 -10:00
Rick Anderson 2e9e3bf72b
Add snippet tag (#116) 2023-02-13 16:56:37 -10:00
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
alexwolfmsft ba11cf34cb
updated to dotnet7 (#108) 2023-02-03 12:02:33 -10:00
Bruno Oliveira 142267664f
Sample form binding project (#112) 2023-01-26 11:17:17 -10:00
Rick Anderson e244bd8f6e
Update README.md 2023-01-04 14:51:45 -10:00
Rick Anderson f99d8dc0a3
Update README.md 2023-01-04 14:51:34 -10:00
Rick Anderson 467ed66783
Extern auth (#111)
* Extern auth

* Extern auth
2023-01-03 16:53:12 -10:00
Jos van der Til febc7dea05
Use SQLite instead of EF In-Memory provider for testing (#109)
* Update to RTM packages

* Use SQLite for testing

* Use SQLite in application
2022-11-21 16:21:12 -10:00
Rick Anderson e34467a7d7
Update README.md 2022-11-07 14:36:47 -10:00
ENG KEONG DAVID LEE 6bda705a09
sample that shows how we can implement additional authorization requirements with an external authorization service (#104)
* sample impl to invoke an ext authz service

* remove disclaimer

* remove have an issue section in readme

* remove gitignore per code review

* remove template generated comments per code review

* use minimal api based on dotnet new behavior

* use file scoped namespaces

Co-authored-by: David Lee <leedavid@microsoft.com>
2022-11-03 14:52:59 -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
alexwolfmsft 6efb80e0bd
Merge pull request #98 from alexwolfmsft/fix-app-settings
fix appsettings
2022-10-12 13:38:50 -04:00
Alex Wolf f092cf33e8 fix appsettings 2022-10-12 13:28:08 -04: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 741e59b976
rename startup to program (#90) 2022-10-07 14:22:07 -10:00
Rick Anderson 3ae71d28ef
use default usings (#89) 2022-10-06 16:05:43 -10:00
Rick Anderson 270a4cb060
Create stub.txt 2022-10-05 09:40:19 -10:00
Rick Anderson 2dc02728b6
change snippet format (#88) 2022-10-04 15:11:21 -10:00
Jos van der Til 5aac3b4b97
Integration test sample for .NET 7 (#84)
* Initial import of 3.x projects

* Update packages to .NET 7.0

* Remove WebApi client dependency

* Give authentication scheme a more explicit name

* Remove BuildServiceProvider calls

* Set environment explicitly in web app factory

* Move to WebApplicationBuilder

* Move Program to top level statements

* Add solution file

* Convert to file scoped namespaces

Co-authored-by: Jos van der Til <jvdtil@quintor.nl>
2022-10-04 14:16:58 -10:00
Rick Anderson aba1ebe5cb
Update .gitignore (#87) 2022-10-04 14:14:27 -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