default options if null (#10)

This commit is contained in:
Adam Hathcock
2024-06-19 11:59:57 +01:00
committed by GitHub
parent c71fc31132
commit 1b93e37894
14 changed files with 26 additions and 24 deletions
@@ -1,10 +1,11 @@
using System;
using System.Linq.Expressions;
using Microsoft.SharePoint.Client;
using Speckle.ProxyGenerator;
namespace ProxyInterfaceConsumerForPnP.Interfaces
{
[Speckle.ProxyGenerator.Proxy(typeof(ClientContext))]
[Speckle.ProxyGenerator.Proxy(typeof(ClientContext), ImplementationOptions.None)]
public partial interface IClientContext : IClientRuntimeContext
{
void Load<TSource, TTarget>(
@@ -1,5 +1,7 @@
using Speckle.ProxyGenerator;
namespace ProxyInterfaceConsumerForPnP.Interfaces
{
[Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ClientObject))]
[Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ClientObject), ImplementationOptions.None)]
public partial interface IClientObject { }
}
@@ -1,5 +1,7 @@
using Speckle.ProxyGenerator;
namespace ProxyInterfaceConsumerForPnP.Interfaces
{
[Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ClientRuntimeContext))]
[Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ClientRuntimeContext), ImplementationOptions.None)]
public partial interface IClientRuntimeContext { }
}
@@ -1,10 +0,0 @@
//using System.Collections;
//using System.Linq;
//namespace ProxyInterfaceConsumerForPnP.Interfaces
//{
// [Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.ListCollection))]
// public partial interface IProxyListCollection: IClientObject, IEnumerable, IQueryable
// {
// }
//}
@@ -1,6 +1,8 @@
using Speckle.ProxyGenerator;
namespace ProxyInterfaceConsumerForPnP.Interfaces
{
[Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.SecurableObject))]
[Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.SecurableObject), ImplementationOptions.None)]
public partial interface ISecurableObject : IClientObject
{
// public virtual void X();
@@ -1,5 +1,7 @@
using Speckle.ProxyGenerator;
namespace ProxyInterfaceConsumerForPnP.Interfaces
{
[Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.User))]
[Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.User), ImplementationOptions.None)]
public partial interface IUser { }
}
@@ -1,5 +1,7 @@
using Speckle.ProxyGenerator;
namespace ProxyInterfaceConsumerForPnP.Interfaces
{
[Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.Web))]
[Speckle.ProxyGenerator.Proxy(typeof(Microsoft.SharePoint.Client.Web), ImplementationOptions.None)]
public partial interface IWeb : ISecurableObject { }
}
@@ -29,9 +29,6 @@
<Compile Update="Interfaces\IClientObject.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Compile>
<Compile Update="Interfaces\IListCollection.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Compile>
<Compile Update="Interfaces\IUser.cs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Compile>