Skip to content

Commit

Permalink
Moving the public API to shipped (so far)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmprieur committed Sep 17, 2024
1 parent cc15e19 commit 3af4b43
Show file tree
Hide file tree
Showing 9 changed files with 795 additions and 794 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public partial interface IDownstreamApi
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> GetForUserAsync<TOutput>(
Expand Down Expand Up @@ -88,7 +88,7 @@ public partial interface IDownstreamApi
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> GetForUserAsync<TInput, TOutput>(
Expand Down Expand Up @@ -122,7 +122,7 @@ public partial interface IDownstreamApi
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> GetForAppAsync<TOutput>(
Expand Down Expand Up @@ -157,7 +157,7 @@ public partial interface IDownstreamApi
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> GetForAppAsync<TInput, TOutput>(
Expand Down Expand Up @@ -195,7 +195,7 @@ public partial interface IDownstreamApi
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task PostForUserAsync<TInput>(
Expand Down Expand Up @@ -235,7 +235,7 @@ public Task PostForUserAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> PostForUserAsync<TInput, TOutput>(
Expand Down Expand Up @@ -271,7 +271,7 @@ public Task PostForUserAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task PostForAppAsync<TInput>(
Expand Down Expand Up @@ -307,7 +307,7 @@ public Task PostForAppAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> PostForAppAsync<TInput, TOutput>(
Expand Down Expand Up @@ -345,7 +345,7 @@ public Task PostForAppAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task PutForUserAsync<TInput>(
Expand Down Expand Up @@ -385,7 +385,7 @@ public Task PutForUserAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> PutForUserAsync<TInput, TOutput>(
Expand Down Expand Up @@ -421,7 +421,7 @@ public Task PutForUserAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task PutForAppAsync<TInput>(
Expand Down Expand Up @@ -457,7 +457,7 @@ public Task PutForAppAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> PutForAppAsync<TInput, TOutput>(
Expand Down Expand Up @@ -497,7 +497,7 @@ public Task PutForAppAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task PatchForUserAsync<TInput>(
Expand Down Expand Up @@ -537,7 +537,7 @@ public Task PatchForUserAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> PatchForUserAsync<TInput, TOutput>(
Expand Down Expand Up @@ -573,7 +573,7 @@ public Task PatchForUserAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task PatchForAppAsync<TInput>(
Expand Down Expand Up @@ -609,7 +609,7 @@ public Task PatchForAppAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> PatchForAppAsync<TInput, TOutput>(
Expand Down Expand Up @@ -649,7 +649,7 @@ public Task PatchForAppAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task DeleteForUserAsync<TInput>(
Expand Down Expand Up @@ -689,7 +689,7 @@ public Task DeleteForUserAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> DeleteForUserAsync<TInput, TOutput>(
Expand Down Expand Up @@ -725,7 +725,7 @@ public Task DeleteForUserAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task DeleteForAppAsync<TInput>(
Expand Down Expand Up @@ -761,7 +761,7 @@ public Task DeleteForAppAsync<TInput>(
/// });
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
public Task<TOutput?> DeleteForAppAsync<TInput, TOutput>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ namespace Microsoft.Identity.Abstractions
/// </code>
/// </example>
<# if (framework != "net8"){ #>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
<# } #>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Task<HttpResponseMessage> CallApiForAppAsync(
/// }
/// </code>
/// </example>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
Task<TOutput?> CallApiForUserAsync<TInput, TOutput>(
Expand All @@ -186,7 +186,7 @@ Task<HttpResponseMessage> CallApiForAppAsync(
/// will find the user from the HttpContext.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns>The value returned by the downstream web API.</returns>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
Task<TOutput?> CallApiForUserAsync<TOutput>(
Expand All @@ -210,7 +210,7 @@ Task<HttpResponseMessage> CallApiForAppAsync(
/// by <paramref name="serviceName"/>.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns>The value returned by the downstream web API.</returns>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
Task<TOutput?> CallApiForAppAsync<TInput, TOutput>(
Expand All @@ -232,7 +232,7 @@ Task<HttpResponseMessage> CallApiForAppAsync(
/// by <paramref name="serviceName"/>.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns>The value returned by the downstream web API.</returns>
#if NET6_0_OR_GREATER
#if NET8_0_OR_GREATER
[RequiresUnreferencedCode("This method's implementations also use generic types and are not trim-friendly.")]
#endif
Task<TOutput?> CallApiForAppAsync<TOutput>(
Expand Down
Loading

0 comments on commit 3af4b43

Please sign in to comment.