< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Configuration.DispatcherBuilderImpl
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Configuration/DispatcherBuilderImpl.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 26
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%11100%
BuildDispatchers(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/Configuration/DispatcherBuilderImpl.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System;
 5using System.Collections.Generic;
 6using Microsoft.Extensions.DependencyInjection;
 7
 8namespace CoreWCF.Configuration
 9{
 10    internal class DispatcherBuilderImpl : IDispatcherBuilder
 11    {
 12        private readonly IServiceProvider _services;
 13
 57114        public DispatcherBuilderImpl(IServiceProvider services)
 15        {
 57116            _services = services;
 57117        }
 18
 19        public List<IServiceDispatcher> BuildDispatchers(Type serviceType)
 20        {
 60921            Type serviceConfigInterface = typeof(IServiceConfiguration<>);
 60922            var serviceConfig = (IServiceConfiguration)_services.GetRequiredService(serviceConfigInterface.MakeGenericTy
 60923            return serviceConfig.GetDispatchers();
 24        }
 25    }
 26}