# < Summary

Information

Class: | Renci.SshNet.Messages.Connection.SignalRequestInfo
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Connection\ChannelRequest\SignalRequestInfo.cs

Line coverage
96%

Covered lines: | 24
Uncovered lines: | 1
Coverable lines: | 25
Total lines: | 93
Line coverage: | 96%

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

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
get_RequestName() | 100% | 1 | 100%
get_SignalName() | 100% | 1 | 0%
set_SignalName(...) | 100% | 1 | 100%
get_BufferCapacity() | 100% | 1 | 100%
.ctor() | 100% | 1 | 100%
.ctor(...) | 100% | 1 | 100%
LoadData() | 100% | 1 | 100%
SaveData() | 100% | 1 | 100%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Connection\ChannelRequest\SignalRequestInfo.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `namespace Renci.SshNet.Messages.Connection`
|  | `2` |  | `{`
|  | `3` |  | `/// <summary>`
|  | `4` |  | `/// Represents "signal" type channel request information.`
|  | `5` |  | `/// </summary>`
|  | `6` |  | `internal sealed class SignalRequestInfo : RequestInfo`
|  | `7` |  | `{`
|  | `8` |  | `private byte[] _signalName;`
|  | `9` |  | ``
|  | `10` |  | `/// <summary>`
|  | `11` |  | `/// Channel request name.`
|  | `12` |  | `/// </summary>`
|  | `13` |  | `public const string Name = "signal";`
|  | `14` |  | ``
|  | `15` |  | `/// <summary>`
|  | `16` |  | `/// Gets the name of the request.`
|  | `17` |  | `/// </summary>`
|  | `18` |  | `/// <value>`
|  | `19` |  | `/// The name of the request.`
|  | `20` |  | `/// </value>`
|  | `21` |  | `public override string RequestName`
|  | `22` |  | `{`
| 18 | `23` |  | `get { return Name; }`
|  | `24` |  | `}`
|  | `25` |  | ``
|  | `26` |  | `/// <summary>`
|  | `27` |  | `/// Gets the name of the signal.`
|  | `28` |  | `/// </summary>`
|  | `29` |  | `/// <value>`
|  | `30` |  | `/// The name of the signal.`
|  | `31` |  | `/// </value>`
|  | `32` |  | `public string SignalName`
|  | `33` |  | `{`
| 0 | `34` |  | `get { return Ascii.GetString(_signalName, 0, _signalName.Length); }`
| 18 | `35` |  | `private set { _signalName = Ascii.GetBytes(value); }`
|  | `36` |  | `}`
|  | `37` |  | ``
|  | `38` |  | `/// <summary>`
|  | `39` |  | `/// Gets the size of the message in bytes.`
|  | `40` |  | `/// </summary>`
|  | `41` |  | `/// <value>`
|  | `42` |  | `/// The size of the messages in bytes.`
|  | `43` |  | `/// </value>`
|  | `44` |  | `protected override int BufferCapacity`
|  | `45` |  | `{`
|  | `46` |  | `get`
| 6 | `47` |  | `{`
| 6 | `48` |  | `var capacity = base.BufferCapacity;`
| 6 | `49` |  | `capacity += 4; // SignalName length`
| 6 | `50` |  | `capacity += _signalName.Length; // SignalName`
| 6 | `51` |  | `return capacity;`
| 6 | `52` |  | `}`
|  | `53` |  | `}`
|  | `54` |  | ``
|  | `55` |  | `/// <summary>`
|  | `56` |  | `/// Initializes a new instance of the <see cref="SignalRequestInfo"/> class.`
|  | `57` |  | `/// </summary>`
| 2810 | `58` |  | `public SignalRequestInfo()`
| 2810 | `59` |  | `{`
| 2810 | `60` |  | `WantReply = false;`
| 2810 | `61` |  | `}`
|  | `62` |  | ``
|  | `63` |  | `/// <summary>`
|  | `64` |  | `/// Initializes a new instance of the <see cref="SignalRequestInfo"/> class.`
|  | `65` |  | `/// </summary>`
|  | `66` |  | `/// <param name="signalName">Name of the signal.</param>`
|  | `67` |  | `public SignalRequestInfo(string signalName)`
| 6 | `68` |  | `: this()`
| 6 | `69` |  | `{`
| 6 | `70` |  | `SignalName = signalName;`
| 6 | `71` |  | `}`
|  | `72` |  | ``
|  | `73` |  | `/// <summary>`
|  | `74` |  | `/// Called when type specific data need to be loaded.`
|  | `75` |  | `/// </summary>`
|  | `76` |  | `protected override void LoadData()`
| 6 | `77` |  | `{`
| 6 | `78` |  | `base.LoadData();`
|  | `79` |  | ``
| 6 | `80` |  | `_signalName = ReadBinary();`
| 6 | `81` |  | `}`
|  | `82` |  | ``
|  | `83` |  | `/// <summary>`
|  | `84` |  | `/// Called when type specific data need to be saved.`
|  | `85` |  | `/// </summary>`
|  | `86` |  | `protected override void SaveData()`
| 6 | `87` |  | `{`
| 6 | `88` |  | `base.SaveData();`
|  | `89` |  | ``
| 6 | `90` |  | `WriteBinaryString(_signalName);`
| 6 | `91` |  | `}`
|  | `92` |  | `}`
|  | `93` |  | `}`

# Methods/Properties

get_RequestName()
get_SignalName()
set_SignalName(System.String)
get_BufferCapacity()
.ctor()
.ctor(System.String)
LoadData()
SaveData()