< Summary

Information
Class: TeleFlow.Telegram.TelegramGeneratedHandlersAttribute
Assembly: TeleFlow.Framework
File(s): /_/src/TeleFlow.Framework/Generated/TelegramGeneratedHandlersAttribute.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 21
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 Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/_/src/TeleFlow.Framework/Generated/TelegramGeneratedHandlersAttribute.cs

#LineLine coverage
 1using System.ComponentModel;
 2
 3namespace TeleFlow.Telegram;
 4
 5/// <summary>
 6/// Infrastructure attribute emitted by TeleFlow source generators to identify generated Telegram handler registrars.
 7/// This API is not intended to be used by application code.
 8/// </summary>
 9[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
 10[EditorBrowsable(EditorBrowsableState.Never)]
 11public sealed class TelegramGeneratedHandlersAttribute : Attribute
 12{
 3813    public TelegramGeneratedHandlersAttribute(Type registrarType)
 14    {
 3815        ArgumentNullException.ThrowIfNull(registrarType);
 16
 17        RegistrarType = registrarType;
 3818    }
 19
 20    public Type RegistrarType { get; }
 21}

Methods/Properties

.ctor(System.Type)