Table of Contents

Class SharePointRestClient

Namespace
PnP.Core.Services
Assembly
PnP.Core.dll

Client that handles all SharePoint REST requests

public class SharePointRestClient
Inheritance
SharePointRestClient
Inherited Members

Constructors

SharePointRestClient(HttpClient, ILogger<SharePointRestClient>, IOptions<PnPGlobalSettingsOptions>)

Default Constructor

public SharePointRestClient(HttpClient client, ILogger<SharePointRestClient> log, IOptions<PnPGlobalSettingsOptions> options)

Parameters

client HttpClient

Http Client coming from the .Net http client factory

log ILogger<SharePointRestClient>

Logger service

options IOptions<PnPGlobalSettingsOptions>

Options service

Properties

Client

Http client which needs to be used for making a SharePoint REST call

public HttpClient Client { get; }

Property Value

HttpClient