개정판 b92f142f
convert service 수정
Controller 수정
Change-Id: I38994fcc4d4452d638ea74b27cc8638f4157e17a
ConvertService/ServiceBase/IServiceBase/ConvertItem.cs | ||
---|---|---|
8 | 8 |
namespace Markus.Service.Interface |
9 | 9 |
{ |
10 | 10 |
[DataContract] |
11 |
public class ConvertItem |
|
11 |
public class ConvertItem : IEquatable<ConvertItem>
|
|
12 | 12 |
{ |
13 |
public bool Equals(ConvertItem other) |
|
14 |
{ |
|
15 |
if (other is null) |
|
16 |
return false; |
|
17 |
|
|
18 |
return this.ConvertID == other.ConvertID && this.ProjectNumber == other.ProjectNumber; |
|
19 |
} |
|
20 |
|
|
21 |
public override bool Equals(object obj) => Equals(obj as ConvertItem); |
|
22 |
public override int GetHashCode() |
|
23 |
{ |
|
24 |
var id = (ConvertID != null) ? ConvertID : ""; |
|
25 |
var project = (ProjectNumber != null) ? ProjectNumber : ""; |
|
26 |
|
|
27 |
return (id + project).GetHashCode(); |
|
28 |
} |
|
29 |
|
|
13 | 30 |
public ConvertItem(string ProjectNo , string ID) |
14 | 31 |
{ |
15 | 32 |
this._projectNumber = ProjectNo; |
... | ... | |
101 | 118 |
|
102 | 119 |
[DataMember] |
103 | 120 |
public Int64 ProcessorAffinity { get; set; } |
121 |
|
|
104 | 122 |
} |
105 | 123 |
} |
내보내기 Unified diff