Skip to content

Latest commit

Β 

History

History
714 lines (520 loc) Β· 24.7 KB

File metadata and controls

714 lines (520 loc) Β· 24.7 KB

Code Metrics

This file is dynamically maintained by a bot, please do not edit this by hand. It represents various code metrics, such as cyclomatic complexity, maintainability index, and so on.

Service.AddressBook.Client βœ”οΈ

The Service.AddressBook.Client.csproj project file contains:

  • 1 namespaces.
  • 2 named types.
  • 26 total lines of source code.
  • Approximately 3 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
Service.AddressBook.Client βœ”οΈ

The Service.AddressBook.Client namespace contains 2 named types.

  • 2 named types.
  • 26 total lines of source code.
  • Approximately 3 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
AddressBookClientFactory βœ”οΈ
  • The AddressBookClientFactory contains 2 members.
  • 9 total lines of source code.
  • Approximately 1 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Method 10 100 1 βœ”οΈ 0 1 3 / 0
Method 14 100 1 βœ”οΈ 0 2 1 / 1

πŸ”— to AddressBookClientFactory class diagram

πŸ” back to Service.AddressBook.Client

AutofacHelper βœ”οΈ
  • The AutofacHelper contains 1 members.
  • 9 total lines of source code.
  • Approximately 2 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Method 10 84 1 βœ”οΈ 0 4 6 / 2

πŸ”— to AutofacHelper class diagram

πŸ” back to Service.AddressBook.Client

πŸ” back to Service.AddressBook.Client

Service.AddressBook.Domain.Models βœ”οΈ

The Service.AddressBook.Domain.Models.csproj project file contains:

  • 1 namespaces.
  • 1 named types.
  • 7 total lines of source code.
  • Approximately 0 lines of executable code.
  • The highest cyclomatic complexity is 2 βœ”οΈ.
Service.AddressBook.Domain.Models βœ”οΈ

The Service.AddressBook.Domain.Models namespace contains 1 named types.

  • 1 named types.
  • 7 total lines of source code.
  • Approximately 0 lines of executable code.
  • The highest cyclomatic complexity is 2 βœ”οΈ.
IHelloMessage βœ”οΈ
  • The IHelloMessage contains 1 members.
  • 4 total lines of source code.
  • Approximately 0 lines of executable code.
  • The highest cyclomatic complexity is 2 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Property 7 100 2 βœ”οΈ 0 0 1 / 0

πŸ”— to IHelloMessage class diagram

πŸ” back to Service.AddressBook.Domain.Models

πŸ” back to Service.AddressBook.Domain.Models

Service.AddressBook.Domain ❓

The Service.AddressBook.Domain.csproj project file contains:

  • 0 namespaces.
  • 0 named types.
  • 0 total lines of source code.
  • Approximately 0 lines of executable code.
  • The highest cyclomatic complexity is 0 ❓.

πŸ” back to Service.AddressBook.Domain

Service.AddressBook.Grpc βœ”οΈ

The Service.AddressBook.Grpc.csproj project file contains:

  • 2 namespaces.
  • 3 named types.
  • 27 total lines of source code.
  • Approximately 4 lines of executable code.
  • The highest cyclomatic complexity is 2 βœ”οΈ.
Service.AddressBook.Grpc βœ”οΈ

The Service.AddressBook.Grpc namespace contains 1 named types.

  • 1 named types.
  • 9 total lines of source code.
  • Approximately 0 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
IHelloService βœ”οΈ
  • The IHelloService contains 1 members.
  • 6 total lines of source code.
  • Approximately 0 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Method 11 100 1 βœ”οΈ 0 4 2 / 0

πŸ”— to IHelloService class diagram

πŸ” back to Service.AddressBook.Grpc

Service.AddressBook.Grpc.Models βœ”οΈ

The Service.AddressBook.Grpc.Models namespace contains 2 named types.

  • 2 named types.
  • 18 total lines of source code.
  • Approximately 4 lines of executable code.
  • The highest cyclomatic complexity is 2 βœ”οΈ.
HelloMessage βœ”οΈ
  • The HelloMessage contains 1 members.
  • 6 total lines of source code.
  • Approximately 2 lines of executable code.
  • The highest cyclomatic complexity is 2 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Property 10 100 2 βœ”οΈ 0 2 2 / 2

πŸ”— to HelloMessage class diagram

πŸ” back to Service.AddressBook.Grpc.Models

HelloRequest βœ”οΈ
  • The HelloRequest contains 1 members.
  • 6 total lines of source code.
  • Approximately 2 lines of executable code.
  • The highest cyclomatic complexity is 2 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Property 9 100 2 βœ”οΈ 0 2 2 / 2

πŸ”— to HelloRequest class diagram

πŸ” back to Service.AddressBook.Grpc.Models

πŸ” back to Service.AddressBook.Grpc

Service.AddressBook βœ”οΈ

The Service.AddressBook.csproj project file contains:

  • 4 namespaces.
  • 7 named types.
  • 181 total lines of source code.
  • Approximately 48 lines of executable code.
  • The highest cyclomatic complexity is 3 βœ”οΈ.
Service.AddressBook βœ”οΈ

The Service.AddressBook namespace contains 3 named types.

  • 3 named types.
  • 125 total lines of source code.
  • Approximately 38 lines of executable code.
  • The highest cyclomatic complexity is 3 βœ”οΈ.
ApplicationLifetimeManager βœ”οΈ
  • The ApplicationLifetimeManager contains 5 members.
  • 25 total lines of source code.
  • Approximately 4 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Field 9 100 0 βœ”οΈ 0 1 1 / 0
Method 11 94 1 βœ”οΈ 0 3 5 / 1
Method 17 97 1 βœ”οΈ 0 2 4 / 1
Method 27 97 1 βœ”οΈ 0 2 4 / 1
Method 22 97 1 βœ”οΈ 0 2 4 / 1

πŸ”— to ApplicationLifetimeManager class diagram

πŸ” back to Service.AddressBook

Program βœ”οΈ
  • The Program contains 6 members.
  • 69 total lines of source code.
  • Approximately 28 lines of executable code.
  • The highest cyclomatic complexity is 3 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Method 59 61 3 βœ”οΈ 0 5 24 / 13
Property 21 100 2 βœ”οΈ 0 1 1 / 0
Method 33 63 1 βœ”οΈ 0 6 25 / 10
Method 23 77 1 βœ”οΈ 0 4 9 / 4
Property 19 100 2 βœ”οΈ 0 1 1 / 0
Field 17 93 0 βœ”οΈ 0 0 1 / 1

πŸ”— to Program class diagram

πŸ” back to Service.AddressBook

Startup βœ”οΈ
  • The Startup contains 3 members.
  • 22 total lines of source code.
  • Approximately 6 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Method 28 89 1 βœ”οΈ 0 3 7 / 2
Method 36 89 1 βœ”οΈ 0 2 6 / 3
Method 23 94 1 βœ”οΈ 0 4 4 / 1

πŸ”— to Startup class diagram

πŸ” back to Service.AddressBook

Service.AddressBook.Modules βœ”οΈ

The Service.AddressBook.Modules namespace contains 2 named types.

  • 2 named types.
  • 20 total lines of source code.
  • Approximately 1 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
ServiceModule βœ”οΈ
  • The ServiceModule contains 1 members.
  • 7 total lines of source code.
  • Approximately 0 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Method 9 100 1 βœ”οΈ 0 1 4 / 0

πŸ”— to ServiceModule class diagram

πŸ” back to Service.AddressBook.Modules

SettingsModule βœ”οΈ
  • The SettingsModule contains 1 members.
  • 7 total lines of source code.
  • Approximately 1 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Method 7 97 1 βœ”οΈ 0 4 4 / 1

πŸ”— to SettingsModule class diagram

πŸ” back to Service.AddressBook.Modules

Service.AddressBook.Services βœ”οΈ

The Service.AddressBook.Services namespace contains 1 named types.

  • 1 named types.
  • 22 total lines of source code.
  • Approximately 3 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
HelloService βœ”οΈ
  • The HelloService contains 3 members.
  • 19 total lines of source code.
  • Approximately 3 lines of executable code.
  • The highest cyclomatic complexity is 1 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Field 12 100 0 βœ”οΈ 0 1 1 / 0
Method 14 96 1 βœ”οΈ 0 1 4 / 1
Method 19 84 1 βœ”οΈ 0 5 9 / 2

πŸ”— to HelloService class diagram

πŸ” back to Service.AddressBook.Services

Service.AddressBook.Settings βœ”οΈ

The Service.AddressBook.Settings namespace contains 1 named types.

  • 1 named types.
  • 14 total lines of source code.
  • Approximately 6 lines of executable code.
  • The highest cyclomatic complexity is 2 βœ”οΈ.
SettingsModel βœ”οΈ
  • The SettingsModel contains 3 members.
  • 11 total lines of source code.
  • Approximately 6 lines of executable code.
  • The highest cyclomatic complexity is 2 βœ”οΈ.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Property 15 100 2 βœ”οΈ 0 2 2 / 2
Property 9 100 2 βœ”οΈ 0 1 2 / 2
Property 12 100 2 βœ”οΈ 0 1 2 / 2

πŸ”— to SettingsModel class diagram

πŸ” back to Service.AddressBook.Settings

πŸ” back to Service.AddressBook

Metric definitions

  • Maintainability index: Measures ease of code maintenance. Higher values are better.
  • Cyclomatic complexity: Measures the number of branches. Lower values are better.
  • Depth of inheritance: Measures length of object inheritance hierarchy. Lower values are better.
  • Class coupling: Measures the number of classes that are referenced. Lower values are better.
  • Lines of source code: Exact number of lines of source code. Lower values are better.
  • Lines of executable code: Approximates the lines of executable code. Lower values are better.

Mermaid class diagrams

AddressBookClientFactory class diagram
classDiagram
class AddressBookClientFactory{
    +.ctor(string grpcServiceUrl) AddressBookClientFactory
    +GetHelloService() IHelloService
}

Loading
AutofacHelper class diagram
classDiagram
class AutofacHelper{
    +RegisterAddressBookClient(ContainerBuilder builder, string grpcServiceUrl)$ void
}

Loading
IHelloMessage class diagram
classDiagram
class IHelloMessage{
    +string Message*
}

Loading
IHelloService class diagram
classDiagram
class IHelloService{
    +SayHelloAsync(HelloRequest request)* Task<HelloMessage>
}

Loading
HelloMessage class diagram
classDiagram
class HelloMessage{
    +string Message
}

Loading
HelloRequest class diagram
classDiagram
class HelloRequest{
    +string Name
}

Loading
ApplicationLifetimeManager class diagram
classDiagram
class ApplicationLifetimeManager{
    -ILogger<ApplicationLifetimeManager> _logger
    +.ctor(IHostApplicationLifetime appLifetime, ILogger<ApplicationLifetimeManager> logger) ApplicationLifetimeManager
    +OnStarted() void
    +OnStopping() void
    +OnStopped() void
}

Loading
Program class diagram
classDiagram
class Program{
    -string SettingsFileName$
    +SettingsModel Settings$
    +ILoggerFactory LogFactory$
    +ReloadedSettings<T>(Func<SettingsModel, T> getter)$ Func<T>
    +Main(string[] args)$ void
    +CreateHostBuilder(ILoggerFactory loggerFactory, string[] args)$ IHostBuilder
}

Loading
Startup class diagram
classDiagram
class Startup{
    +ConfigureServices(IServiceCollection services) void
    +Configure(IApplicationBuilder app, IWebHostEnvironment env) void
    +ConfigureContainer(ContainerBuilder builder) void
}

Loading
ServiceModule class diagram
classDiagram
class ServiceModule{
    +Load(ContainerBuilder builder) void
}

Loading
SettingsModule class diagram
classDiagram
class SettingsModule{
    +Load(ContainerBuilder builder) void
}

Loading
HelloService class diagram
classDiagram
class HelloService{
    -ILogger<HelloService> _logger
    +.ctor(ILogger<HelloService> logger) HelloService
    +SayHelloAsync(HelloRequest request) Task<HelloMessage>
}

Loading
SettingsModel class diagram
classDiagram
class SettingsModel{
    +string SeqServiceUrl
    +string ZipkinUrl
    +LogElkSettings ElkLogs
}

Loading

This file is maintained by a bot.