< Summary

Information
Class: TeleFlow.Telegram.TelegramGeneratedCallbackDataCodecsAttribute
Assembly: TeleFlow.Framework
File(s): /_/src/TeleFlow.Framework/Generated/TelegramGeneratedCallbackDataCodecsAttribute.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/TelegramGeneratedCallbackDataCodecsAttribute.cs

#LineLine coverage
 1using System.ComponentModel;
 2
 3namespace TeleFlow.Telegram;
 4
 5/// <summary>
 6/// Infrastructure attribute emitted by TeleFlow source generators to identify generated
 7/// callback data codec registrars for an assembly.
 8/// </summary>
 9[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
 10[EditorBrowsable(EditorBrowsableState.Never)]
 11public sealed class TelegramGeneratedCallbackDataCodecsAttribute : Attribute
 12{
 113    public TelegramGeneratedCallbackDataCodecsAttribute(Type registrarType)
 14    {
 115        ArgumentNullException.ThrowIfNull(registrarType);
 16
 17        RegistrarType = registrarType;
 118    }
 19
 20    public Type RegistrarType { get; }
 21}

Methods/Properties

.ctor(System.Type)