Skip to content

Commit dbe5a99

Browse files
JoshLove-msftnick863
authored andcommitted
Bump SCM dep version (#53652)
* Bump SCM dep version * Add AOT attributes * Bubble up attributes * add each layer * Update interface * move to type level
1 parent 865f658 commit dbe5a99

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

eng/Packages.Data.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
<!-- BCL packages -->
8888
<PackageReference Update="System.Buffers" Version="4.5.1" />
89-
<PackageReference Update="System.ClientModel" Version="1.7.0" />
89+
<PackageReference Update="System.ClientModel" Version="1.8.0" />
9090
<PackageReference Update="System.IO.Hashing" Version="8.0.0" />
9191
<PackageReference Update="System.Memory" Version="4.6.3" />
9292
<PackageReference Update="System.Memory.Data" Version="8.0.1" />
@@ -446,7 +446,7 @@
446446
<PackageReference Update="Polly.Contrib.WaitAndRetry" Version="1.1.1" />
447447
<PackageReference Update="Portable.BouncyCastle" Version="1.9.0" />
448448
<PackageReference Update="PublicApiGenerator" Version="10.0.1" />
449-
<PackageReference Update="System.ClientModel" Version="1.7.0" />
449+
<PackageReference Update="System.ClientModel" Version="1.8.0" />
450450
<PackageReference Update="System.CommandLine" VersionOverride="2.0.0-beta4.22272.1" />
451451
<PackageReference Update="System.Diagnostics.TraceSource" Version="4.3.0" />
452452
<PackageReference Update="System.IO.Compression" Version="4.3.0" />

sdk/core/Azure.Core/api/Azure.Core.net8.0.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ protected Operation() { }
144144
public virtual Azure.Core.RehydrationToken? GetRehydrationToken() { throw null; }
145145
public static Azure.Operation Rehydrate(Azure.Core.Pipeline.HttpPipeline pipeline, Azure.Core.RehydrationToken rehydrationToken, Azure.Core.ClientOptions? options = null) { throw null; }
146146
public static System.Threading.Tasks.Task<Azure.Operation> RehydrateAsync(Azure.Core.Pipeline.HttpPipeline pipeline, Azure.Core.RehydrationToken rehydrationToken, Azure.Core.ClientOptions? options = null) { throw null; }
147+
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("This method uses reflection.")]
147148
public static System.Threading.Tasks.Task<Azure.Operation<T>> RehydrateAsync<T>(Azure.Core.Pipeline.HttpPipeline pipeline, Azure.Core.RehydrationToken rehydrationToken, Azure.Core.ClientOptions? options = null) where T : System.ClientModel.Primitives.IPersistableModel<T> { throw null; }
149+
[System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("This method uses reflection.")]
148150
public static Azure.Operation<T> Rehydrate<T>(Azure.Core.Pipeline.HttpPipeline pipeline, Azure.Core.RehydrationToken rehydrationToken, Azure.Core.ClientOptions? options = null) where T : System.ClientModel.Primitives.IPersistableModel<T> { throw null; }
149151
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
150152
public override string? ToString() { throw null; }

sdk/core/Azure.Core/src/Internal/GenericOperationSource.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
namespace Azure.Core
1010
{
11+
[RequiresDynamicCode("This method uses reflection.")]
12+
[RequiresUnreferencedCode("This method uses reflection.")]
1113
internal class GenericOperationSource<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] T> : IOperationSource<T> where T : IPersistableModel<T>
1214
{
1315
T IOperationSource<T>.CreateResult(Response response, CancellationToken cancellationToken)

sdk/core/Azure.Core/src/Operation.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public abstract class Operation
2626
/// <param name="rehydrationToken">The rehydration token.</param>
2727
/// <param name="options">The client options.</param>
2828
/// <returns>The long-running operation.</returns>
29+
[RequiresDynamicCode("This method uses reflection.")]
30+
[RequiresUnreferencedCode("This method uses reflection.")]
2931
public static Operation<T> Rehydrate<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] T>(HttpPipeline pipeline, RehydrationToken rehydrationToken, ClientOptions? options = null) where T : IPersistableModel<T>
3032
{
3133
Argument.AssertNotNull(pipeline, nameof(pipeline));
@@ -62,6 +64,8 @@ public static Operation Rehydrate(HttpPipeline pipeline, RehydrationToken rehydr
6264
/// <param name="rehydrationToken">The rehydration token.</param>
6365
/// <param name="options">The client options.</param>
6466
/// <returns>The long-running operation.</returns>
67+
[RequiresDynamicCode("This method uses reflection.")]
68+
[RequiresUnreferencedCode("This method uses reflection.")]
6569
public static async Task<Operation<T>> RehydrateAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] T>(HttpPipeline pipeline, RehydrationToken rehydrationToken, ClientOptions? options = null) where T : IPersistableModel<T>
6670
{
6771
Argument.AssertNotNull(pipeline, nameof(pipeline));

0 commit comments

Comments
 (0)