mirror of
https://gitlab.com/fabinfra/fabaccess/borepin_tmp.git
synced 2025-03-12 14:51:43 +01:00
25 lines
481 B
C#
25 lines
481 B
C#
|
using System;
|
|||
|
|
|||
|
namespace FabAccessAPI
|
|||
|
{
|
|||
|
public enum SASLMechanismEnum
|
|||
|
{
|
|||
|
PLAIN,
|
|||
|
}
|
|||
|
|
|||
|
public static class SASLMechanism
|
|||
|
{
|
|||
|
public static string ToString(SASLMechanismEnum mechanism)
|
|||
|
{
|
|||
|
switch(mechanism)
|
|||
|
{
|
|||
|
case SASLMechanismEnum.PLAIN:
|
|||
|
return "PLAIN";
|
|||
|
default:
|
|||
|
throw new ArgumentException("Mechanism unknown.");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|