Skip to content

Latest commit

 

History

History
724 lines (549 loc) · 38.6 KB

File metadata and controls

724 lines (549 loc) · 38.6 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.

MyJetWallet.Sdk.NoSql 🤯

The MyJetWallet.Sdk.NoSql.csproj project file contains:

  • 1 namespaces.
  • 13 named types.
  • 505 total lines of source code.
  • Approximately 154 lines of executable code.
  • The highest cyclomatic complexity is 15 🤯.
MyJetWallet.Sdk.NoSql 🤯

The MyJetWallet.Sdk.NoSql namespace contains 13 named types.

  • 13 named types.
  • 505 total lines of source code.
  • Approximately 154 lines of executable code.
  • The highest cyclomatic complexity is 15 🤯.
AutofacNoSqlHelper ✔️
  • The AutofacNoSqlHelper contains 5 members.
  • 138 total lines of source code.
  • Approximately 44 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 46 57 3 ✔️ 0 7 51 / 17
Method 14 66 2 ✔️ 0 7 31 / 9
Method 112 84 1 ✔️ 0 4 6 / 2
Method 119 63 3 ✔️ 0 10 28 / 11
Method 98 71 1 ✔️ 0 6 13 / 5

🔗 to AutofacNoSqlHelper class diagram

🔝 back to MyJetWallet.Sdk.NoSql

MyNoSqlSubscriberLogWrapper.DeleteActionsWrapper<T> ✔️
  • The MyNoSqlSubscriberLogWrapper.DeleteActionsWrapper<T> contains 6 members.
  • 28 total lines of source code.
  • Approximately 11 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
Field 122 100 0 ✔️ 0 3 1 / 0
Field 120 100 0 ✔️ 0 0 1 / 0
Field 121 100 0 ✔️ 0 0 1 / 0
Method 124 79 1 ✔️ 0 3 6 / 3
Method 131 68 3 ✔️ 0 5 12 / 7
Property 118 100 2 ✔️ 0 0 1 / 1

🔗 to MyNoSqlSubscriberLogWrapper.DeleteActionsWrapper&lt;T&gt; class diagram

🔝 back to MyJetWallet.Sdk.NoSql

IMyNoSqlTcpClientManager ✔️
  • The IMyNoSqlTcpClientManager contains 2 members.
  • 5 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 7 100 1 ✔️ 0 0 1 / 0
Method 8 100 1 ✔️ 0 0 1 / 0

🔗 to IMyNoSqlTcpClientManager class diagram

🔝 back to MyJetWallet.Sdk.NoSql

MyNoSqlSubscriberLogWrapper.InitActionWrapper<T> ✔️
  • The MyNoSqlSubscriberLogWrapper.InitActionWrapper<T> contains 5 members.
  • 25 total lines of source code.
  • Approximately 9 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 39 100 0 ✔️ 0 2 1 / 0
Field 37 100 0 ✔️ 0 0 1 / 0
Field 38 100 0 ✔️ 0 0 1 / 0
Method 41 79 1 ✔️ 0 2 6 / 3
Method 48 71 1 ✔️ 0 4 11 / 6

🔗 to MyNoSqlSubscriberLogWrapper.InitActionWrapper&lt;T&gt; class diagram

🔝 back to MyJetWallet.Sdk.NoSql

MyNoSqlSubscriberLogWrapper.InitPartitionActionWrapper<T> ✔️
  • The MyNoSqlSubscriberLogWrapper.InitPartitionActionWrapper<T> contains 5 members.
  • 25 total lines of source code.
  • Approximately 9 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 65 100 0 ✔️ 0 2 1 / 0
Field 63 100 0 ✔️ 0 0 1 / 0
Field 64 100 0 ✔️ 0 0 1 / 0
Method 67 79 1 ✔️ 0 2 6 / 3
Method 74 71 1 ✔️ 0 4 11 / 6

🔗 to MyNoSqlSubscriberLogWrapper.InitPartitionActionWrapper&lt;T&gt; class diagram

🔝 back to MyJetWallet.Sdk.NoSql

INoSqlReaderCountDataGetter ✔️
  • The INoSqlReaderCountDataGetter contains 1 members.
  • 4 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 7 100 1 ✔️ 0 2 1 / 0

🔗 to INoSqlReaderCountDataGetter class diagram

🔝 back to MyJetWallet.Sdk.NoSql

MyNoSqlClientLifeTime 🤯
  • The MyNoSqlClientLifeTime contains 7 members.
  • 93 total lines of source code.
  • Approximately 36 lines of executable code.
  • The highest cyclomatic complexity is 15 🤯.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Field 12 100 0 ✔️ 0 0 1 / 0
Field 13 100 0 ✔️ 0 0 1 / 0
Field 14 100 0 ✔️ 0 1 1 / 0
Field 15 100 0 ✔️ 0 1 1 / 0
Method 17 75 1 ✔️ 0 4 11 / 4
Method 29 48 15 🤯 0 9 58 / 28
Method 88 80 2 ✔️ 0 3 14 / 4

🔗 to MyNoSqlClientLifeTime class diagram

🔝 back to MyJetWallet.Sdk.NoSql

MyNoSqlSubscriberLogWrapper ✔️
  • The MyNoSqlSubscriberLogWrapper contains 4 members.
  • 136 total lines of source code.
  • Approximately 8 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 11 100 0 ✔️ 0 1 1 / 0
Field 12 100 0 ✔️ 0 0 1 / 0
Method 14 85 1 ✔️ 0 1 5 / 2
Method 20 67 1 ✔️ 0 11 14 / 6

🔗 to MyNoSqlSubscriberLogWrapper class diagram

🔝 back to MyJetWallet.Sdk.NoSql

MyNoSqlTcpClientManager ✔️
  • The MyNoSqlTcpClientManager contains 4 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 13 100 0 ✔️ 0 1 1 / 0
Method 15 96 1 ✔️ 0 1 4 / 1
Method 20 100 1 ✔️ 0 2 4 / 1
Method 25 100 1 ✔️ 0 2 4 / 1

🔗 to MyNoSqlTcpClientManager class diagram

🔝 back to MyJetWallet.Sdk.NoSql

MyNoSqlTcpClientWatcher ✔️
  • The MyNoSqlTcpClientWatcher contains 10 members.
  • 66 total lines of source code.
  • Approximately 19 lines of executable code.
  • The highest cyclomatic complexity is 4 ✔️.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Field 19 93 0 ✔️ 0 2 1 / 1
Field 15 100 0 ✔️ 0 1 1 / 0
Field 14 100 0 ✔️ 0 1 1 / 0
Field 17 100 0 ✔️ 0 1 1 / 0
Field 16 100 0 ✔️ 0 1 1 / 0
Method 21 78 1 ✔️ 0 4 7 / 3
Method 54 93 1 ✔️ 0 2 5 / 2
Method 60 70 4 ✔️ 0 5 17 / 5
Method 29 88 1 ✔️ 0 3 5 / 2
Method 35 70 3 ✔️ 0 6 18 / 6

🔗 to MyNoSqlTcpClientWatcher class diagram

🔝 back to MyJetWallet.Sdk.NoSql

NoSqlDataWaitMode ✔️
  • The NoSqlDataWaitMode contains 3 members.
  • 6 total lines of source code.
  • Approximately 0 lines of executable code.
  • The highest cyclomatic complexity is 0 ✔️.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Field 12 100 0 ✔️ 0 0 1 / 0
Field 13 100 0 ✔️ 0 0 1 / 0
Field 14 100 0 ✔️ 0 0 1 / 0

🔗 to NoSqlDataWaitMode class diagram

🔝 back to MyJetWallet.Sdk.NoSql

NoSqlReaderCountDataGetter ✔️
  • The NoSqlReaderCountDataGetter contains 5 members.
  • 18 total lines of source code.
  • Approximately 4 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
Field 19 100 0 ✔️ 0 1 1 / 0
Field 21 100 0 ✔️ 0 1 1 / 0
Field 20 100 0 ✔️ 0 0 1 / 0
Method 23 77 2 ✔️ 0 5 6 / 3
Method 30 92 1 ✔️ 0 4 4 / 1

🔗 to NoSqlReaderCountDataGetter class diagram

🔝 back to MyJetWallet.Sdk.NoSql

MyNoSqlSubscriberLogWrapper.UpdateActionWrapper<T> ✔️
  • The MyNoSqlSubscriberLogWrapper.UpdateActionWrapper<T> contains 7 members.
  • 28 total lines of source code.
  • Approximately 11 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
Field 94 100 0 ✔️ 0 2 1 / 0
Field 92 100 0 ✔️ 0 0 1 / 0
Field 93 100 0 ✔️ 0 0 1 / 0
Method 96 79 1 ✔️ 0 2 6 / 3
Method 103 70 3 ✔️ 0 4 11 / 6
Property 89 100 2 ✔️ 0 0 1 / 1
Property 90 100 2 ✔️ 0 0 1 / 1

🔗 to MyNoSqlSubscriberLogWrapper.UpdateActionWrapper&lt;T&gt; class diagram

🔝 back to MyJetWallet.Sdk.NoSql

🔝 back to MyJetWallet.Sdk.NoSql

TestApp ✔️

The TestApp.csproj project file contains:

  • 1 namespaces.
  • 2 named types.
  • 83 total lines of source code.
  • Approximately 43 lines of executable code.
  • The highest cyclomatic complexity is 2 ✔️.
TestApp ✔️

The TestApp namespace contains 2 named types.

  • 2 named types.
  • 83 total lines of source code.
  • Approximately 43 lines of executable code.
  • The highest cyclomatic complexity is 2 ✔️.
Program ✔️
  • The Program contains 2 members.
  • 58 total lines of source code.
  • Approximately 39 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
Method 10 47 1 ✔️ 0 4 46 / 36
Method 57 82 2 ✔️ 0 5 8 / 3

🔗 to Program class diagram

🔝 back to TestApp

TestEntity ✔️
  • The TestEntity contains 5 members.
  • 21 total lines of source code.
  • Approximately 4 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
Method 77 89 1 ✔️ 0 1 9 / 1
Method 71 100 1 ✔️ 0 0 1 / 1
Method 72 100 1 ✔️ 0 0 1 / 1
Property 74 100 2 ✔️ 0 0 1 / 0
Field 69 93 0 ✔️ 0 0 1 / 1

🔗 to TestEntity class diagram

🔝 back to TestApp

🔝 back to TestApp

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

AutofacNoSqlHelper class diagram
classDiagram
class AutofacNoSqlHelper{
    +CreateNoSqlClientOld(ContainerBuilder builder, Func<string> readerHostPort)$ IMyNoSqlSubscriber
    +CreateNoSqlClient(ContainerBuilder builder, string readerHostPort, ILoggerFactory loggerFactory, string nosqlClientName = "")$ IMyNoSqlSubscriber
    +RegisterMyNoSqlWriter<T>(ContainerBuilder builder, Func<string> writerUrl, string tableName, bool persist = true, DataSynchronizationPeriod dataSynchronizationPeriod = null)$ IMyNoSqlServerDataWriter<T>
    +RegisterMyNoSqlReader<T>(ContainerBuilder builder, IMyNoSqlSubscriber client, string tableName)$ IMyNoSqlServerDataReader<T>
    +RegisterMyNoSqlReader<T>(ContainerBuilder builder, IMyNoSqlSubscriber client, string tableName, NoSqlDataWaitMode waitDataOnStart)$ IMyNoSqlServerDataReader<T>
}

Loading
MyNoSqlSubscriberLogWrapper.DeleteActionsWrapper<T> class diagram
classDiagram
class DeleteActionsWrapper<T>{
    -string _name
    -string _tableName
    -Action<IEnumerable<(string partitionKey, string rowKey)>> _action
    +bool LogEnabled$
    +eActionsWrapper(string name, string tableName, Action<IEnumerable<(string partitionKey, string rowKey)>> action) void
    +Action(IEnumerable<(string partitionKey, string rowKey)> items) void
}

Loading
IMyNoSqlTcpClientManager class diagram
classDiagram
class IMyNoSqlTcpClientManager{
    +Start()* void
    +Stop()* void
}

Loading
MyNoSqlSubscriberLogWrapper.InitActionWrapper<T> class diagram
classDiagram
class InitActionWrapper<T>{
    -string _name
    -string _tableName
    -Action<IReadOnlyList<T>> _initAction
    +ctionWrapper(string name, string tableName, Action<IReadOnlyList<T>> initAction) void
    +Action(IReadOnlyList<T> items) void
}

Loading
MyNoSqlSubscriberLogWrapper.InitPartitionActionWrapper<T> class diagram
classDiagram
class InitPartitionActionWrapper<T>{
    -string _name
    -string _tableName
    -Action<string, IReadOnlyList<T>> _action
    +artitionActionWrapper(string name, string tableName, Action<string, IReadOnlyList<T>> action) void
    +Action(string pk, IReadOnlyList<T> items) void
}

Loading
INoSqlReaderCountDataGetter class diagram
classDiagram
class INoSqlReaderCountDataGetter{
    +NoSqlReaderCountDataGetter.CountEntities()* (int,
}

Loading
MyNoSqlClientLifeTime class diagram
classDiagram
class MyNoSqlClientLifeTime{
    -IMyNoSqlTcpClientManager[] _clients
    -INoSqlReaderCountDataGetter[] _countDataGetter
    -ILogger<MyNoSqlClientLifeTime> _logger
    -MyNoSqlTcpClientWatcher _watcher
    +.ctor(IMyNoSqlTcpClientManager[] clients, INoSqlReaderCountDataGetter[] countDataGetter, ILogger<MyNoSqlClientLifeTime> logger, MyNoSqlTcpClientWatcher watcher) MyNoSqlClientLifeTime
    +Start() void
    +Stop() void
}

Loading
MyNoSqlSubscriberLogWrapper class diagram
classDiagram
class MyNoSqlSubscriberLogWrapper{
    -IMyNoSqlSubscriber _client
    -string _name
    +.ctor(IMyNoSqlSubscriber client, string name) MyNoSqlSubscriberLogWrapper
    +Subscribe<T>(string tableName, Action<IReadOnlyList<T>> initAction, Action<string, IReadOnlyList<T>> initPartitionAction, Action<IReadOnlyList<T>> updateAction, Action<IEnumerable<(string partitionKey, string rowKey)>> deleteActions) void
}

Loading
MyNoSqlTcpClientManager class diagram
classDiagram
IMyNoSqlTcpClientManager <|-- MyNoSqlTcpClientManager : implements
class MyNoSqlTcpClientManager{
    -MyNoSqlTcpClient _client
    +.ctor(MyNoSqlTcpClient client) MyNoSqlTcpClientManager
    +Start() void
    +Stop() void
}

Loading
MyNoSqlTcpClientWatcher class diagram
classDiagram
IDisposable <|-- MyNoSqlTcpClientWatcher : implements
ILivenessReporter <|-- MyNoSqlTcpClientWatcher : implements
class MyNoSqlTcpClientWatcher{
    -MyNoSqlTcpClient _myNoSqlTcpClient
    -ILogger<MyNoSqlTcpClientWatcher> _logger
    -MyTaskTimer _timer
    -DateTime _starTime
    -DateTime? _lastLossConnect
    +.ctor(MyNoSqlTcpClient myNoSqlTcpClient, ILogger<MyNoSqlTcpClientWatcher> logger) MyNoSqlTcpClientWatcher
    +Start() void
    +Watch() Task
    +Dispose() void
    +GetIssues() (string, List<string>)
}

Loading
NoSqlDataWaitMode class diagram
classDiagram
class NoSqlDataWaitMode{
    -None$
    -WaitAndContinue$
    -WaitAndThrow$
}

Loading
NoSqlReaderCountDataGetter class diagram
classDiagram
INoSqlReaderCountDataGetter <|-- NoSqlReaderCountDataGetter : implements
class NoSqlReaderCountDataGetter{
    -Func<int> _countCallback
    -string _typeName
    -NoSqlDataWaitMode _mode
    +.ctor(Func<int> countCallback, string typeName, NoSqlDataWaitMode mode) NoSqlReaderCountDataGetter
    +NoSqlReaderCountDataGetter.CountEntities() (int,
}

Loading
MyNoSqlSubscriberLogWrapper.UpdateActionWrapper<T> class diagram
classDiagram
class UpdateActionWrapper<T>{
    -string _name
    -string _tableName
    -Action<IReadOnlyList<T>> _action
    +bool LogStartEnabled$
    +bool LogStopEnabled$
    +eActionWrapper(string name, string tableName, Action<IReadOnlyList<T>> action) void
    +Action(IReadOnlyList<T> items) void
}

Loading
Program class diagram
classDiagram
class Program{
    +Main(string[] args)$ Task
    +Print(MyNoSqlServerDataWriter<TestEntity> writer)$ Task
}

Loading
TestEntity class diagram
classDiagram
class TestEntity{
    -string TableName$
    +string Message
    +GeneratePartitionKey(string pk)$ string
    +GenerateRowKey(string rk)$ string
    +Create(string pk, string rk)$ TestEntity
}

Loading

This file is maintained by a bot.