Files
ProxyGenerator/src-examples/ProxyInterfaceConsumerForPnP/Implementations/ClientRuntimeContextExtensions.cs
T
Stef Heyenrath 0e57de17c3 Use Mapster as mapper (#39)
* mapster

* ,

* .

* ...

* .

* .

* .

* .

* .

* .

* int

* .

* ;
2022-09-05 21:26:02 +02:00

14 lines
556 B
C#

using System.Threading.Tasks;
using Microsoft.SharePoint.Client;
using ProxyInterfaceConsumerForPnP.Interfaces;
namespace ProxyInterfaceConsumerForPnP.Implementations;
public static class ClientRuntimeContextExtensions
{
public static Task ExecuteQueryRetryAsync(this IClientRuntimeContext clientContext, int retryCount = 10, string? userAgent = null)
{
ClientRuntimeContext clientObject_ = Mapster.TypeAdapter.Adapt<ClientRuntimeContext>(clientContext);
return clientObject_.ExecuteQueryRetryAsync(retryCount, userAgent);
}
}