OpenServiceBroker.Template
0.3.0.1
See the version list below for details.
dotnet new install OpenServiceBroker.Template::0.3.0.1
This template helps you implement a Service Broker according to the Open Service Broker API.
It uses the OpenServiceBroker.Server library.
Using the template
Make sure you have the .NET Core SDK installed your machine. Then install the template by running the following:
dotnet new --install OpenServiceBroker.Template::*
To use the template to create a new project:
dotnet new osb --name MyServiceBroker
cd MyServiceBroker
Next steps
The startup logic in the template registers the following services for dependency injection:
CatalogService
as an implementation ofICatalogService
.ServiceInstanceService
as an implementation ofIServiceInstanceBlocking
.
The catalog of available services is read from the file catalog.json
.
Provisioned services are stored in a database using Entity Framework and SQLite. The data structures are described by DbContext
and ServiceInstanceEntity
.
You may wish to:
- Add your own services to
catalog.json
or modifyCatalogService
fetch service-information from elsewhere. - Implement the actual provisioning of services in
ServiceInstanceServic
, potentially removing the database storage. - Add implementations for
IServiceInstanceDeferred
,IServiceBindingBlocking
and/orIServiceBindingDeferred
See the API documentation for more details.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.