-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy pathBulkOperation.cs
More file actions
61 lines (52 loc) · 1.43 KB
/
BulkOperation.cs
File metadata and controls
61 lines (52 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Microsoft.SCIM
{
using System;
using System.Net.Http;
using System.Runtime.Serialization;
[DataContract]
public abstract class BulkOperation
{
private HttpMethod method;
private string methodName;
protected BulkOperation()
{
this.Identifier = Guid.NewGuid().ToString();
}
protected BulkOperation(string identifier)
{
this.Identifier = identifier;
}
[DataMember(Name = ProtocolAttributeNames.BulkOperationIdentifier, Order = 1)]
public string Identifier
{
get;
private set;
}
public HttpMethod Method
{
get => this.method;
set
{
this.method = value;
if (value != null)
{
this.methodName = value.ToString();
}
}
}
[DataMember(Name = ProtocolAttributeNames.Method, Order = 0)]
#pragma warning disable IDE0051 // Remove unused private members
private string MethodName
#pragma warning restore IDE0051 // Remove unused private members
{
get => this.methodName;
set
{
this.method = new HttpMethod(value);
this.methodName = value;
}
}
}
}