Dreamine.PLC.Abstractions
1.0.1
Dreamine.PLC.Abstractions 공용 계약과 추상화를 제공합니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
PlcResult.cs
이 파일의 문서화 페이지로 가기
1
namespace
Dreamine.PLC.Abstractions.Results
;
2
11
public
class
PlcResult
12
{
45
protected
PlcResult
(
bool
isSuccess,
int
? errorCode,
string
? message)
46
{
47
IsSuccess
= isSuccess;
48
ErrorCode
= errorCode;
49
Message
= message;
50
}
51
60
public
bool
IsSuccess
{
get
; }
61
70
public
int
?
ErrorCode
{
get
; }
71
80
public
string
?
Message
{
get
; }
81
98
public
static
PlcResult
Success
()
99
{
100
return
new
PlcResult
(
true
,
null
,
null
);
101
}
102
143
public
static
PlcResult
Failure
(
string
message,
int
? errorCode =
null
)
144
{
145
ArgumentException.ThrowIfNullOrWhiteSpace(message);
146
return
new
PlcResult
(
false
, errorCode, message);
147
}
148
}
Dreamine.PLC.Abstractions.Results
Definition
PlcResult.cs:1
Dreamine.PLC.Abstractions.Results.PlcResult.Failure
static PlcResult Failure(string message, int? errorCode=null)
Definition
PlcResult.cs:143
Dreamine.PLC.Abstractions.Results.PlcResult.ErrorCode
int? ErrorCode
Definition
PlcResult.cs:70
Dreamine.PLC.Abstractions.Results.PlcResult.PlcResult
PlcResult(bool isSuccess, int? errorCode, string? message)
Definition
PlcResult.cs:45
Dreamine.PLC.Abstractions.Results.PlcResult.IsSuccess
bool IsSuccess
Definition
PlcResult.cs:60
Dreamine.PLC.Abstractions.Results.PlcResult.Success
static PlcResult Success()
Definition
PlcResult.cs:98
Dreamine.PLC.Abstractions.Results.PlcResult.Message
string? Message
Definition
PlcResult.cs:80
Results
PlcResult.cs
다음에 의해 생성됨 :
1.17.0