Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/loic-sharma/pulumi-aspnet
https://github.com/loic-sharma/pulumi-aspnet
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/loic-sharma/pulumi-aspnet
- Owner: loic-sharma
- Created: 2018-06-20T06:54:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T07:52:42.000Z (over 6 years ago)
- Last Synced: 2024-10-19T00:36:22.705Z (3 months ago)
- Language: C#
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - pulumi-aspnet - (C# #)
README
# Pulumi ASP.NET
This example shows how Pulumi could integrate into an ASP.NET Core app:
* Resources are declared through the [`MyServiceResources`](https://github.com/loic-sharma/pulumi-aspnet/blob/master/MyServiceResources.cs) resource provider
* The resource provider is registered to Dependency Injection container in [`Startup.ConfigureServices`](https://github.com/loic-sharma/pulumi-aspnet/blob/master/Startup.cs#L30)The `pulumi update` command should behave similarly to Entity Framework Core's migrations: it should invoke [`Program.BuildWebHost()`](https://github.com/loic-sharma/pulumi-aspnet/blob/master/Program.cs#L20), access the `IWebHost.Services` property, and resolve the `Pulumi.ServiceProvider`. For more information on how EF Core creates its context at design-time, refer to [this documentation](https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dbcontext-creation).