# < Summary

Information

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

Line coverage
77%

Covered lines: | 7
Uncovered lines: | 2
Coverable lines: | 9
Total lines: | 43
Line coverage: | 77.7%

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_ServiceName() | 100% | 1 | 100%
LoadData() | 100% | 1 | 100%
SaveData() | 100% | 1 | 0%
Process(...) | 100% | 1 | 100%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Messages\Transport\ServiceAcceptMessage.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | `using Renci.SshNet.Common;`
|  | `3` |  | ``
|  | `4` |  | `namespace Renci.SshNet.Messages.Transport`
|  | `5` |  | `{`
|  | `6` |  | `/// <summary>`
|  | `7` |  | `/// Represents SSH_MSG_SERVICE_ACCEPT message.`
|  | `8` |  | `/// </summary>`
|  | `9` |  | `[Message("SSH_MSG_SERVICE_ACCEPT", MessageNumber)]`
|  | `10` |  | `public class ServiceAcceptMessage : Message`
|  | `11` |  | `{`
|  | `12` |  | `internal const byte MessageNumber = 6;`
|  | `13` |  | ``
|  | `14` |  | `/// <summary>`
|  | `15` |  | `/// Gets the name of the service.`
|  | `16` |  | `/// </summary>`
|  | `17` |  | `/// <value>`
|  | `18` |  | `/// The name of the service.`
|  | `19` |  | `/// </value>`
| 1813 | `20` |  | `public ServiceName ServiceName { get; private set; }`
|  | `21` |  | ``
|  | `22` |  | `/// <summary>`
|  | `23` |  | `/// Called when type specific data need to be loaded.`
|  | `24` |  | `/// </summary>`
|  | `25` |  | `protected override void LoadData()`
| 1813 | `26` |  | `{`
| 1813 | `27` |  | `ServiceName = ReadBinary().ToServiceName();`
| 1813 | `28` |  | `}`
|  | `29` |  | ``
|  | `30` |  | `/// <summary>`
|  | `31` |  | `/// Called when type specific data need to be saved.`
|  | `32` |  | `/// </summary>`
|  | `33` |  | `protected override void SaveData()`
| 0 | `34` |  | `{`
| 0 | `35` |  | `throw new NotImplementedException();`
|  | `36` |  | `}`
|  | `37` |  | ``
|  | `38` |  | `internal override void Process(Session session)`
| 1813 | `39` |  | `{`
| 1813 | `40` |  | `session.OnServiceAcceptReceived(this);`
| 1813 | `41` |  | `}`
|  | `42` |  | `}`
|  | `43` |  | `}`

# Methods/Properties

get_ServiceName()
LoadData()
SaveData()
Process(Renci.SshNet.Session)