< Summary

Class:Microsoft.Extensions.Hosting.UseAkkaExtensions
Assembly:SeungYongShim.Akka.DependencyInjection
File(s):/home/runner/work/SeungYongShim.Akka/SeungYongShim.Akka/src/SeungYongShim.Akka.DependencyInjection/UseAkkaExtensions.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:27
Line coverage:100% (3 of 3)
Covered branches:0
Total branches:0
Tag:81_945672945

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
UseAkka(...)0%110100%
UseAkka(...)0%220100%

File(s)

/home/runner/work/SeungYongShim.Akka/SeungYongShim.Akka/src/SeungYongShim.Akka.DependencyInjection/UseAkkaExtensions.cs

#LineLine coverage
 1using System;
 2using System.Runtime.CompilerServices;
 3using Akka.Actor;
 4using Akka.Configuration;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7[assembly: InternalsVisibleTo("Mirero.Akka.Extensions.DependencyInjection.XUnit2")]
 8
 9namespace Microsoft.Extensions.Hosting
 10{
 11    public static class UseAkkaExtensions
 12    {
 13        public static IHostBuilder UseAkka(this IHostBuilder host,
 14                                           string actorSystemName,
 15                                           string hocon,
 16                                           Func<Config, Config> hoconFunc,
 17                                           Action<IServiceProvider, ActorSystem> startAction = null) =>
 818            host.ConfigureServices((context, services) =>
 1619                services.AddAkka(actorSystemName, hocon, hoconFunc, startAction));
 20
 21        public static IHostBuilder UseAkka(this IHostBuilder host,
 22                                           string actorSystemName,
 23                                           string hocon,
 24                                           Action<IServiceProvider, ActorSystem> startAction = null) =>
 425            host.UseAkka(actorSystemName, hocon, _ => _, startAction);
 26    }
 27}