Skip to content

Commit 1d0f0bf

Browse files
committed
Update Public API test to ignore DebuggerStepThroughAttribute
1 parent de60a46 commit 1d0f0bf

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

test/Microsoft.Restier.TestCommon/PublicApi.bsl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ ExtensionAttribute(),
4343
]
4444
public sealed class Microsoft.Restier.Core.Api {
4545
[
46-
DebuggerStepThroughAttribute(),
4746
AsyncStateMachineAttribute(),
4847
]
4948
public static System.Threading.Tasks.Task`1[[Microsoft.OData.Edm.IEdmModel]] GetModelAsync (Microsoft.Restier.Core.ApiContext context, params System.Threading.CancellationToken cancellationToken)
@@ -54,13 +53,11 @@ public sealed class Microsoft.Restier.Core.Api {
5453
public static System.Threading.Tasks.Task`1[[Microsoft.OData.Edm.IEdmModel]] GetModelAsync (Microsoft.Restier.Core.IApi api, params System.Threading.CancellationToken cancellationToken)
5554

5655
[
57-
DebuggerStepThroughAttribute(),
5856
AsyncStateMachineAttribute(),
5957
]
6058
public static System.Threading.Tasks.Task`1[[Microsoft.Restier.Core.Query.QueryResult]] QueryAsync (Microsoft.Restier.Core.ApiContext context, Microsoft.Restier.Core.Query.QueryRequest request, params System.Threading.CancellationToken cancellationToken)
6159

6260
[
63-
DebuggerStepThroughAttribute(),
6461
AsyncStateMachineAttribute(),
6562
ExtensionAttribute(),
6663
]
@@ -72,7 +69,6 @@ public sealed class Microsoft.Restier.Core.Api {
7269
public static System.Threading.Tasks.Task`1[[Microsoft.Restier.Core.Query.QueryResult]] QueryAsync (Microsoft.Restier.Core.IApi api, Microsoft.Restier.Core.Query.QueryRequest request, params System.Threading.CancellationToken cancellationToken)
7370

7471
[
75-
DebuggerStepThroughAttribute(),
7672
AsyncStateMachineAttribute(),
7773
ExtensionAttribute(),
7874
]
@@ -103,7 +99,6 @@ public sealed class Microsoft.Restier.Core.Api {
10399
public static IQueryable`1 Source (Microsoft.Restier.Core.IApi api, string namespaceName, string name, object[] arguments)
104100

105101
[
106-
DebuggerStepThroughAttribute(),
107102
AsyncStateMachineAttribute(),
108103
]
109104
public static System.Threading.Tasks.Task`1[[Microsoft.Restier.Core.Submit.SubmitResult]] SubmitAsync (Microsoft.Restier.Core.ApiContext context, params Microsoft.Restier.Core.Submit.ChangeSet changeSet, params System.Threading.CancellationToken cancellationToken)
@@ -185,14 +180,12 @@ ExtensionAttribute(),
185180
]
186181
public sealed class Microsoft.Restier.WebApi.HttpConfigurationExtensions {
187182
[
188-
DebuggerStepThroughAttribute(),
189183
AsyncStateMachineAttribute(),
190184
ExtensionAttribute(),
191185
]
192186
public static System.Threading.Tasks.Task`1[[System.Web.OData.Routing.ODataRoute]] MapRestierRoute (System.Web.Http.HttpConfiguration config, string routeName, string routePrefix, params Microsoft.Restier.WebApi.Batch.RestierBatchHandler batchHandler)
193187

194188
[
195-
DebuggerStepThroughAttribute(),
196189
AsyncStateMachineAttribute(),
197190
ExtensionAttribute(),
198191
]
@@ -209,38 +202,32 @@ public class Microsoft.Restier.WebApi.RestierController : System.Web.OData.OData
209202
Microsoft.Restier.Core.IApi Api { public get; }
210203

211204
[
212-
DebuggerStepThroughAttribute(),
213205
AsyncStateMachineAttribute(),
214206
]
215207
public System.Threading.Tasks.Task`1[[System.Web.Http.IHttpActionResult]] Delete (System.Threading.CancellationToken cancellationToken)
216208

217209
protected virtual void Dispose (bool disposing)
218210
[
219-
DebuggerStepThroughAttribute(),
220211
AsyncStateMachineAttribute(),
221212
]
222213
public System.Threading.Tasks.Task`1[[System.Net.Http.HttpResponseMessage]] Get (System.Threading.CancellationToken cancellationToken)
223214

224215
[
225-
DebuggerStepThroughAttribute(),
226216
AsyncStateMachineAttribute(),
227217
]
228218
public System.Threading.Tasks.Task`1[[System.Web.Http.IHttpActionResult]] Patch (System.Web.OData.EdmEntityObject edmEntityObject, System.Threading.CancellationToken cancellationToken)
229219

230220
[
231-
DebuggerStepThroughAttribute(),
232221
AsyncStateMachineAttribute(),
233222
]
234223
public System.Threading.Tasks.Task`1[[System.Web.Http.IHttpActionResult]] Post (System.Web.OData.EdmEntityObject edmEntityObject, System.Threading.CancellationToken cancellationToken)
235224

236225
[
237-
DebuggerStepThroughAttribute(),
238226
AsyncStateMachineAttribute(),
239227
]
240228
public System.Threading.Tasks.Task`1[[System.Web.Http.IHttpActionResult]] PostAction (System.Threading.CancellationToken cancellationToken)
241229

242230
[
243-
DebuggerStepThroughAttribute(),
244231
AsyncStateMachineAttribute(),
245232
]
246233
public System.Threading.Tasks.Task`1[[System.Web.Http.IHttpActionResult]] Put (System.Web.OData.EdmEntityObject edmEntityObject, System.Threading.CancellationToken cancellationToken)
@@ -527,7 +514,6 @@ public class Microsoft.Restier.WebApi.Batch.RestierBatchHandler : System.Web.ODa
527514

528515
protected virtual System.Web.OData.Batch.ChangeSetRequestItem CreateChangeSetRequestItem (System.Collections.Generic.IList`1[[System.Net.Http.HttpRequestMessage]] changeSetRequests)
529516
[
530-
DebuggerStepThroughAttribute(),
531517
AsyncStateMachineAttribute(),
532518
]
533519
public virtual System.Threading.Tasks.Task`1[[System.Collections.Generic.IList`1[[System.Web.OData.Batch.ODataBatchRequestItem]]]] ParseBatchRequestsAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)
@@ -537,7 +523,6 @@ public class Microsoft.Restier.WebApi.Batch.RestierChangeSetRequestItem : System
537523
public RestierChangeSetRequestItem (System.Collections.Generic.IEnumerable`1[[System.Net.Http.HttpRequestMessage]] requests, System.Func`1[[Microsoft.Restier.Core.IApi]] apiFactory)
538524

539525
[
540-
DebuggerStepThroughAttribute(),
541526
AsyncStateMachineAttribute(),
542527
]
543528
public virtual System.Threading.Tasks.Task`1[[System.Web.OData.Batch.ODataBatchResponseItem]] SendRequestAsync (System.Net.Http.HttpMessageInvoker invoker, System.Threading.CancellationToken cancellationToken)

test/Microsoft.Restier.TestCommon/PublicApiDump.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,15 @@ static private bool AppendCustomAttributes(StringBuilder builder, object[] attri
377377
{
378378
continue;
379379
}
380+
else if (attribute is System.Diagnostics.DebuggerStepThroughAttribute)
381+
{
382+
continue;
383+
}
380384
else if (isEnum && (attribute is System.SerializableAttribute))
381385
{
382386
continue;
383387
}
388+
384389
count++;
385390

386391
if (indent)

0 commit comments

Comments
 (0)