b995ac3912
* pnp * . * . * okee * ns * . * o * . * , * x * t * co * . * r * CastTo
100 lines
4.2 KiB
C#
100 lines
4.2 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 ClientObjectProxy : IClientObject
|
|
{
|
|
public Microsoft.SharePoint.Client.ClientObject _Instance { get; }
|
|
|
|
|
|
public ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext Context { get => _mapper.Map<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>(_Instance.Context); }
|
|
|
|
public object Tag { get => _Instance.Tag; set => _Instance.Tag = value; }
|
|
|
|
public Microsoft.SharePoint.Client.ObjectPath Path { get => _Instance.Path; }
|
|
|
|
public string ObjectVersion { get => _Instance.ObjectVersion; set => _Instance.ObjectVersion = value; }
|
|
|
|
public bool? ServerObjectIsNull { get => _Instance.ServerObjectIsNull; }
|
|
|
|
public ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject TypedObject { get => _mapper.Map<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>(_Instance.TypedObject); }
|
|
|
|
|
|
|
|
public virtual void FromJson(Microsoft.SharePoint.Client.JsonReader reader)
|
|
{
|
|
Microsoft.SharePoint.Client.JsonReader reader_ = reader;
|
|
_Instance.FromJson(reader_);
|
|
}
|
|
|
|
public virtual bool CustomFromJson(Microsoft.SharePoint.Client.JsonReader reader)
|
|
{
|
|
Microsoft.SharePoint.Client.JsonReader reader_ = reader;
|
|
var result__636829107 = _Instance.CustomFromJson(reader_);
|
|
return result__636829107;
|
|
}
|
|
|
|
public void Retrieve()
|
|
{
|
|
_Instance.Retrieve();
|
|
}
|
|
|
|
public void Retrieve(params string[] propertyNames)
|
|
{
|
|
string[] propertyNames_ = propertyNames;
|
|
_Instance.Retrieve(propertyNames_);
|
|
}
|
|
|
|
public virtual void RefreshLoad()
|
|
{
|
|
_Instance.RefreshLoad();
|
|
}
|
|
|
|
public bool IsPropertyAvailable(string propertyName)
|
|
{
|
|
string propertyName_ = propertyName;
|
|
var result_1607091274 = _Instance.IsPropertyAvailable(propertyName_);
|
|
return result_1607091274;
|
|
}
|
|
|
|
public bool IsObjectPropertyInstantiated(string propertyName)
|
|
{
|
|
string propertyName_ = propertyName;
|
|
var result__181021484 = _Instance.IsObjectPropertyInstantiated(propertyName_);
|
|
return result__181021484;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ClientObjectProxy(Microsoft.SharePoint.Client.ClientObject instance)
|
|
{
|
|
_Instance = 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);
|
|
}).CreateMapper();
|
|
|
|
}
|
|
|
|
private readonly IMapper _mapper;
|
|
}
|
|
}
|
|
#nullable disable |