69fa995982
* . * . * pnp * ok * compiles * ? * e * set * .ToArray() * n * ... * ok * pnp * . * . * mapster
65 lines
3.7 KiB
C#
65 lines
3.7 KiB
C#
//----------------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by https://github.com/StefH/ProxyInterfaceSourceGenerator.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//----------------------------------------------------------------------------------------
|
|
|
|
#nullable enable
|
|
using System;
|
|
using AutoMapper;
|
|
|
|
namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
|
{
|
|
public partial class SecurableObjectProxy : ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy, ISecurableObject
|
|
{
|
|
public new Microsoft.SharePoint.Client.SecurableObject _Instance { get; }
|
|
public Microsoft.SharePoint.Client.ClientObject _InstanceClientObject { get; }
|
|
|
|
public ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject FirstUniqueAncestorSecurableObject { get => _mapper.Map<ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject>(_Instance.FirstUniqueAncestorSecurableObject); }
|
|
|
|
public bool HasUniqueRoleAssignments { get => _Instance.HasUniqueRoleAssignments; }
|
|
|
|
public Microsoft.SharePoint.Client.RoleAssignmentCollection RoleAssignments { get => _Instance.RoleAssignments; }
|
|
|
|
|
|
|
|
public virtual void ResetRoleInheritance()
|
|
{
|
|
_Instance.ResetRoleInheritance();
|
|
}
|
|
|
|
public virtual void BreakRoleInheritance(bool copyRoleAssignments, bool clearSubscopes)
|
|
{
|
|
bool copyRoleAssignments_ = copyRoleAssignments;
|
|
bool clearSubscopes_ = clearSubscopes;
|
|
_Instance.BreakRoleInheritance(copyRoleAssignments_, clearSubscopes_);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public SecurableObjectProxy(Microsoft.SharePoint.Client.SecurableObject instance) : base(instance)
|
|
{
|
|
_Instance = instance;
|
|
_InstanceClientObject = instance;
|
|
|
|
_mapper = new MapperConfiguration(cfg =>
|
|
{
|
|
cfg.CreateMap<Microsoft.SharePoint.Client.ClientRuntimeContext, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328));
|
|
cfg.CreateMap<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext, Microsoft.SharePoint.Client.ClientRuntimeContext>().ConstructUsing(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance);
|
|
cfg.CreateMap<Microsoft.SharePoint.Client.ClientObject, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668));
|
|
cfg.CreateMap<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject, Microsoft.SharePoint.Client.ClientObject>().ConstructUsing(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance);
|
|
cfg.CreateMap<Microsoft.SharePoint.Client.SecurableObject, ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject>().ConstructUsing(instance592284880 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance592284880));
|
|
cfg.CreateMap<ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject, Microsoft.SharePoint.Client.SecurableObject>().ConstructUsing(proxy_300636294 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_300636294)._Instance);
|
|
}).CreateMapper();
|
|
|
|
}
|
|
|
|
private readonly IMapper _mapper;
|
|
}
|
|
}
|
|
#nullable disable |