< Summary - CoreWCF Coverage — PR #1766

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

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.NetNamedPipe/src/CoreWCF/Configuration/NetNamedPipeServerOptionsSetup.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.Runtime.Versioning;
 6using Microsoft.Extensions.Options;
 7
 8namespace CoreWCF.Configuration
 9{
 10    [SupportedOSPlatform("windows")]
 11    internal class NetNamedPipeServerOptionsSetup : IConfigureOptions<Channels.NetNamedPipeOptions>
 12    {
 13        private readonly IServiceProvider _services;
 14
 015        public NetNamedPipeServerOptionsSetup(IServiceProvider services)
 16        {
 017            _services = services;
 018        }
 19
 20        public void Configure(Channels.NetNamedPipeOptions options)
 21        {
 022            options.ApplicationServices = _services;
 023        }
 24    }
 25}