< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.Configuration.NetTcpServerOptionsSetup
Assembly: CoreWCF.NetTcp
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetTcp/src/CoreWCF/Configuration/NetTcpServerOptionsSetup.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 23
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%
Configure(...)100%11100%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetTcp/src/CoreWCF/Configuration/NetTcpServerOptionsSetup.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 Microsoft.Extensions.Options;
 5using System;
 6
 7namespace CoreWCF.Configuration
 8{
 9    internal class NetTcpServerOptionsSetup : IConfigureOptions<Channels.NetTcpOptions>
 10    {
 11        private readonly IServiceProvider _services;
 12
 8013        public NetTcpServerOptionsSetup(IServiceProvider services)
 14        {
 8015            _services = services;
 8016        }
 17
 18        public void Configure(Channels.NetTcpOptions options)
 19        {
 8020            options.ApplicationServices = _services;
 8021        }
 22    }
 23}