There is a newer version of this package available.
See the version list below for details.
dotnet new --install OpenServiceBroker.Template::
This package contains a .NET Core Template Package you can call from the shell/command line.

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 of ICatalogService.
  • ServiceInstanceService as an implementation of IServiceInstanceBlocking.

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 modify CatalogService fetch service-information from elsewhere.
  • Implement the actual provisioning of services in ServiceInstanceServic, potentially removing the database storage.
  • Add implementations for IServiceInstanceDeferred, IServiceBindingBlocking and/or IServiceBindingDeferred

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.

Version Downloads Last updated
0.4.5 25 1/13/2022
0.4.4 911 11/29/2021
0.4.3 177 9/5/2021
0.4.2 1,995 4/7/2021
0.4.0 365 9/20/2020
0.3.1 190 8/26/2020 210 7/30/2020