@@ -16,7 +16,7 @@ public CobaltHostLockingStore(ClaimsPrincipal principal)
16
16
17
17
public override WhoAmIRequest . OutputType HandleWhoAmI ( WhoAmIRequest . InputType input )
18
18
{
19
- WhoAmIRequest . OutputType result = new WhoAmIRequest . OutputType
19
+ var result = new WhoAmIRequest . OutputType
20
20
{
21
21
UserEmailAddress = _principal ? . FindFirst ( ClaimTypes . Email ) . Value ,
22
22
UserIsAnonymous = string . IsNullOrEmpty ( _principal ? . FindFirst ( ClaimTypes . NameIdentifier ) . Value ) ,
@@ -29,14 +29,14 @@ public override WhoAmIRequest.OutputType HandleWhoAmI(WhoAmIRequest.InputType in
29
29
30
30
public override ServerTimeRequest . OutputType HandleServerTime ( ServerTimeRequest . InputType input )
31
31
{
32
- ServerTimeRequest . OutputType result = new ServerTimeRequest . OutputType { ServerTime = DateTime . UtcNow } ;
32
+ var result = new ServerTimeRequest . OutputType { ServerTime = DateTime . UtcNow } ;
33
33
34
34
return result ;
35
35
}
36
36
37
37
public override LockAndCheckOutStatusRequest . OutputType HandleLockAndCheckOutStatus ( LockAndCheckOutStatusRequest . InputType input )
38
38
{
39
- LockAndCheckOutStatusRequest . OutputType result = new LockAndCheckOutStatusRequest . OutputType
39
+ var result = new LockAndCheckOutStatusRequest . OutputType
40
40
{
41
41
LockType = 1U ,
42
42
CheckOutType = 0U
@@ -47,84 +47,84 @@ public override LockAndCheckOutStatusRequest.OutputType HandleLockAndCheckOutSta
47
47
48
48
public override GetExclusiveLockRequest . OutputType HandleGetExclusiveLock ( GetExclusiveLockRequest . InputType input )
49
49
{
50
- GetExclusiveLockRequest . OutputType result = new GetExclusiveLockRequest . OutputType ( ) ;
50
+ var result = new GetExclusiveLockRequest . OutputType ( ) ;
51
51
52
52
return result ;
53
53
}
54
54
55
55
public override RefreshExclusiveLockRequest . OutputType HandleRefreshExclusiveLock ( RefreshExclusiveLockRequest . InputType input )
56
56
{
57
- RefreshExclusiveLockRequest . OutputType result = new RefreshExclusiveLockRequest . OutputType ( ) ;
57
+ var result = new RefreshExclusiveLockRequest . OutputType ( ) ;
58
58
59
59
return result ;
60
60
}
61
61
62
62
public override CheckExclusiveLockAvailabilityRequest . OutputType HandleCheckExclusiveLockAvailability ( CheckExclusiveLockAvailabilityRequest . InputType input )
63
63
{
64
- CheckExclusiveLockAvailabilityRequest . OutputType result = new CheckExclusiveLockAvailabilityRequest . OutputType ( ) ;
64
+ var result = new CheckExclusiveLockAvailabilityRequest . OutputType ( ) ;
65
65
66
66
return result ;
67
67
}
68
68
69
69
public override ConvertExclusiveLockToSchemaLockRequest . OutputType HandleConvertExclusiveLockToSchemaLock ( ConvertExclusiveLockToSchemaLockRequest . InputType input , int protocolMajorVersion , int protocolMinorVersion )
70
70
{
71
- ConvertExclusiveLockToSchemaLockRequest . OutputType result = new ConvertExclusiveLockToSchemaLockRequest . OutputType ( ) ;
71
+ var result = new ConvertExclusiveLockToSchemaLockRequest . OutputType ( ) ;
72
72
73
73
return result ;
74
74
}
75
75
76
76
public override ConvertExclusiveLockWithCoauthTransitionRequest . OutputType HandleConvertExclusiveLockWithCoauthTransition ( ConvertExclusiveLockWithCoauthTransitionRequest . InputType input , int protocolMajorVersion , int protocolMinorVersion )
77
77
{
78
- ConvertExclusiveLockWithCoauthTransitionRequest . OutputType result = new ConvertExclusiveLockWithCoauthTransitionRequest . OutputType ( ) ;
78
+ var result = new ConvertExclusiveLockWithCoauthTransitionRequest . OutputType ( ) ;
79
79
80
80
return result ;
81
81
}
82
82
83
83
public override GetSchemaLockRequest . OutputType HandleGetSchemaLock ( GetSchemaLockRequest . InputType input , int protocolMajorVersion , int protocolMinorVersion )
84
84
{
85
- GetSchemaLockRequest . OutputType result = new GetSchemaLockRequest . OutputType ( ) ;
85
+ var result = new GetSchemaLockRequest . OutputType ( ) ;
86
86
87
87
return result ;
88
88
}
89
89
90
90
public override ReleaseExclusiveLockRequest . OutputType HandleReleaseExclusiveLock ( ReleaseExclusiveLockRequest . InputType input )
91
91
{
92
- ReleaseExclusiveLockRequest . OutputType result = new ReleaseExclusiveLockRequest . OutputType ( ) ;
92
+ var result = new ReleaseExclusiveLockRequest . OutputType ( ) ;
93
93
94
94
return result ;
95
95
}
96
96
97
97
public override ReleaseSchemaLockRequest . OutputType HandleReleaseSchemaLock ( ReleaseSchemaLockRequest . InputType input , int protocolMajorVersion , int protocolMinorVersion )
98
98
{
99
- ReleaseSchemaLockRequest . OutputType result = new ReleaseSchemaLockRequest . OutputType ( ) ;
99
+ var result = new ReleaseSchemaLockRequest . OutputType ( ) ;
100
100
101
101
return result ;
102
102
}
103
103
104
104
public override RefreshSchemaLockRequest . OutputType HandleRefreshSchemaLock ( RefreshSchemaLockRequest . InputType input , int protocolMajorVersion , int protocolMinorVersion )
105
105
{
106
- RefreshSchemaLockRequest . OutputType result = new RefreshSchemaLockRequest . OutputType { Lock = LockType . SchemaLock } ;
106
+ var result = new RefreshSchemaLockRequest . OutputType { Lock = LockType . SchemaLock } ;
107
107
108
108
return result ;
109
109
}
110
110
111
111
public override ConvertSchemaLockToExclusiveLockRequest . OutputType HandleConvertSchemaLockToExclusiveLock ( ConvertSchemaLockToExclusiveLockRequest . InputType input )
112
112
{
113
- ConvertSchemaLockToExclusiveLockRequest . OutputType result = new ConvertSchemaLockToExclusiveLockRequest . OutputType ( ) ;
113
+ var result = new ConvertSchemaLockToExclusiveLockRequest . OutputType ( ) ;
114
114
115
115
return result ;
116
116
}
117
117
118
118
public override CheckSchemaLockAvailabilityRequest . OutputType HandleCheckSchemaLockAvailability ( CheckSchemaLockAvailabilityRequest . InputType input )
119
119
{
120
- CheckSchemaLockAvailabilityRequest . OutputType result = new CheckSchemaLockAvailabilityRequest . OutputType ( ) ;
120
+ var result = new CheckSchemaLockAvailabilityRequest . OutputType ( ) ;
121
121
122
122
return result ;
123
123
}
124
124
125
125
public override JoinCoauthoringRequest . OutputType HandleJoinCoauthoring ( JoinCoauthoringRequest . InputType input , int protocolMajorVersion , int protocolMinorVersion )
126
126
{
127
- JoinCoauthoringRequest . OutputType result = new JoinCoauthoringRequest . OutputType
127
+ var result = new JoinCoauthoringRequest . OutputType
128
128
{
129
129
Lock = LockType . SchemaLock ,
130
130
CoauthStatus = CoauthStatusType . Alone ,
@@ -135,14 +135,14 @@ public override JoinCoauthoringRequest.OutputType HandleJoinCoauthoring(JoinCoau
135
135
136
136
public override ExitCoauthoringRequest . OutputType HandleExitCoauthoring ( ExitCoauthoringRequest . InputType input , int protocolMajorVersion , int protocolMinorVersion )
137
137
{
138
- ExitCoauthoringRequest . OutputType result = new ExitCoauthoringRequest . OutputType ( ) ;
138
+ var result = new ExitCoauthoringRequest . OutputType ( ) ;
139
139
140
140
return result ;
141
141
}
142
142
143
143
public override RefreshCoauthoringSessionRequest . OutputType HandleRefreshCoauthoring ( RefreshCoauthoringSessionRequest . InputType input , int protocolMajorVersion , int protocolMinorVersion )
144
144
{
145
- RefreshCoauthoringSessionRequest . OutputType result = new RefreshCoauthoringSessionRequest . OutputType
145
+ var result = new RefreshCoauthoringSessionRequest . OutputType
146
146
{
147
147
Lock = LockType . SchemaLock ,
148
148
CoauthStatus = CoauthStatusType . Alone
@@ -153,28 +153,28 @@ public override RefreshCoauthoringSessionRequest.OutputType HandleRefreshCoautho
153
153
154
154
public override ConvertCoauthLockToExclusiveLockRequest . OutputType HandleConvertCoauthLockToExclusiveLock ( ConvertCoauthLockToExclusiveLockRequest . InputType input )
155
155
{
156
- ConvertCoauthLockToExclusiveLockRequest . OutputType result = new ConvertCoauthLockToExclusiveLockRequest . OutputType ( ) ;
156
+ var result = new ConvertCoauthLockToExclusiveLockRequest . OutputType ( ) ;
157
157
158
158
return result ;
159
159
}
160
160
161
161
public override CheckCoauthLockAvailabilityRequest . OutputType HandleCheckCoauthLockAvailability ( CheckCoauthLockAvailabilityRequest . InputType input )
162
162
{
163
- CheckCoauthLockAvailabilityRequest . OutputType result = new CheckCoauthLockAvailabilityRequest . OutputType ( ) ;
163
+ var result = new CheckCoauthLockAvailabilityRequest . OutputType ( ) ;
164
164
165
165
return result ;
166
166
}
167
167
168
168
public override MarkCoauthTransitionCompleteRequest . OutputType HandleMarkCoauthTransitionComplete ( MarkCoauthTransitionCompleteRequest . InputType input )
169
169
{
170
- MarkCoauthTransitionCompleteRequest . OutputType result = new MarkCoauthTransitionCompleteRequest . OutputType ( ) ;
170
+ var result = new MarkCoauthTransitionCompleteRequest . OutputType ( ) ;
171
171
172
172
return result ;
173
173
}
174
174
175
175
public override GetCoauthoringStatusRequest . OutputType HandleGetCoauthoringStatus ( GetCoauthoringStatusRequest . InputType input )
176
176
{
177
- GetCoauthoringStatusRequest . OutputType result = new GetCoauthoringStatusRequest . OutputType
177
+ var result = new GetCoauthoringStatusRequest . OutputType
178
178
{
179
179
CoauthStatus = CoauthStatusType . Alone
180
180
} ;
@@ -189,35 +189,35 @@ public override Dictionary<string, EditorsTableEntry> QueryEditorsTable()
189
189
190
190
public override JoinEditingSessionRequest . OutputType HandleJoinEditingSession ( JoinEditingSessionRequest . InputType input )
191
191
{
192
- JoinEditingSessionRequest . OutputType result = new JoinEditingSessionRequest . OutputType ( ) ;
192
+ var result = new JoinEditingSessionRequest . OutputType ( ) ;
193
193
194
194
return result ;
195
195
}
196
196
197
197
public override RefreshEditingSessionRequest . OutputType HandleRefreshEditingSession ( RefreshEditingSessionRequest . InputType input )
198
198
{
199
- RefreshEditingSessionRequest . OutputType result = new RefreshEditingSessionRequest . OutputType ( ) ;
199
+ var result = new RefreshEditingSessionRequest . OutputType ( ) ;
200
200
201
201
return result ;
202
202
}
203
203
204
204
public override LeaveEditingSessionRequest . OutputType HandleLeaveEditingSession ( LeaveEditingSessionRequest . InputType input )
205
205
{
206
- LeaveEditingSessionRequest . OutputType result = new LeaveEditingSessionRequest . OutputType ( ) ;
206
+ var result = new LeaveEditingSessionRequest . OutputType ( ) ;
207
207
208
208
return result ;
209
209
}
210
210
211
211
public override UpdateEditorMetadataRequest . OutputType HandleUpdateEditorMetadata ( UpdateEditorMetadataRequest . InputType input )
212
212
{
213
- UpdateEditorMetadataRequest . OutputType result = new UpdateEditorMetadataRequest . OutputType ( ) ;
213
+ var result = new UpdateEditorMetadataRequest . OutputType ( ) ;
214
214
215
215
return result ;
216
216
}
217
217
218
218
public override RemoveEditorMetadataRequest . OutputType HandleRemoveEditorMetadata ( RemoveEditorMetadataRequest . InputType input )
219
219
{
220
- RemoveEditorMetadataRequest . OutputType result = new RemoveEditorMetadataRequest . OutputType ( ) ;
220
+ var result = new RemoveEditorMetadataRequest . OutputType ( ) ;
221
221
222
222
return result ;
223
223
}
@@ -229,21 +229,21 @@ public override ulong GetEditorsTableWaterline()
229
229
230
230
public override AmIAloneRequest . OutputType HandleAmIAlone ( AmIAloneRequest . InputType input )
231
231
{
232
- AmIAloneRequest . OutputType result = new AmIAloneRequest . OutputType { AmIAlone = true } ;
232
+ var result = new AmIAloneRequest . OutputType { AmIAlone = true } ;
233
233
234
234
return result ;
235
235
}
236
236
237
237
public override DocMetaInfoRequest . OutputType HandleDocMetaInfo ( DocMetaInfoRequest . InputType input )
238
238
{
239
- DocMetaInfoRequest . OutputType result = new DocMetaInfoRequest . OutputType ( ) ;
239
+ var result = new DocMetaInfoRequest . OutputType ( ) ;
240
240
241
241
return result ;
242
242
}
243
243
244
244
public override VersionsRequest . OutputType HandleVersions ( VersionsRequest . InputType input )
245
245
{
246
- VersionsRequest . OutputType result = new VersionsRequest . OutputType { Enabled = false } ;
246
+ var result = new VersionsRequest . OutputType { Enabled = false } ;
247
247
248
248
return result ;
249
249
}
0 commit comments