Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

flapek/Joint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Joint

Branch Build status
master Build Status
develop Build Status

Getting started

In order to get started with Joint, simply install the core package:

dotnet add package Joint

Its sole responsibility is to expose IJointBuilder being used by other packages, which provides fluent API experience, similar to built-in ASP.NET Core IServiceCollection and IApplicationBuilder abstractions.

public class Program
{
    public static async Task Main(string[] args)
        => await WebHost.CreateDefaultBuilder(args)
            .ConfigureServices(services => services.AddJoint().Build())
            .Configure(app =>
            {
                //Configure the middleware
            })
            .Build()
            .RunAsync();
}

Whether you’re using just a Program.cs on its own (yes, you can build your web applications and microservices without a need of having Startup class and AddMvc() along with full UseMvc() middleware) or doing it with a Startup.cs included, just invoke AddJoint() on IServiceCollection instance within the ConfigureServices() method and start using Joint packages.

The core Joint package also registers AppOptions type which contains the application name (and it’s purely optional).

Options

  • name - an optional name of the application.
  • service - an optional service of the application.
  • instance - an optional instance of the application.
  • version - an optional version of the application.
  • displayBanner - display a banner (console output) with the application name during a startup, true by default.
  • displayVersion - display a version (console output) with the application name during a startup, true by default.

appsettings.json

"app": {
  "name": "some service",
  "service": "some service",
  "instance": "some instance",
  "version": "1",
  "displayBanner": true,
  "displayVersion": true
}

cmdRunningService

Table of Contents

About

Project for library which collect common services functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published