Use fully qualified names to reduce namespace clashes. (#68)
* Use fully qualified names to reduce namespace clashes. * Small code style fixes. * Make properties in ProxyData immutable. * Remove clutter by joining TrimEnd() to previous line. * Introduce Extension method to retrieve ITypeSymbol FullyQualifiedDisplayString * Fixed some code issues. * Fixed method call in BaseGenerator * Refactor metadata name
This commit is contained in:
+42
-50
@@ -12,129 +12,121 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source.AkkaActor
|
||||
{
|
||||
public partial class LocalActorRefProviderProxy : ILocalActorRefProvider
|
||||
public partial class LocalActorRefProviderProxy : global::ProxyInterfaceSourceGeneratorTests.Source.AkkaActor.ILocalActorRefProvider
|
||||
{
|
||||
public Akka.Actor.LocalActorRefProvider _Instance { get; }
|
||||
public global::Akka.Actor.LocalActorRefProvider _Instance { get; }
|
||||
|
||||
public global::Akka.Actor.IActorRef DeadLetters { get => _Instance.DeadLetters; }
|
||||
|
||||
public Akka.Actor.IActorRef DeadLetters { get => _Instance.DeadLetters; }
|
||||
public global::Akka.Actor.IActorRef IgnoreRef { get => _Instance.IgnoreRef; }
|
||||
|
||||
public Akka.Actor.IActorRef IgnoreRef { get => _Instance.IgnoreRef; }
|
||||
public global::Akka.Actor.Deployer Deployer { get => _Instance.Deployer; }
|
||||
|
||||
public Akka.Actor.Deployer Deployer { get => _Instance.Deployer; }
|
||||
public global::Akka.Actor.IInternalActorRef RootGuardian { get => _Instance.RootGuardian; }
|
||||
|
||||
public Akka.Actor.IInternalActorRef RootGuardian { get => _Instance.RootGuardian; }
|
||||
public global::Akka.Actor.ActorPath RootPath { get => _Instance.RootPath; }
|
||||
|
||||
public Akka.Actor.ActorPath RootPath { get => _Instance.RootPath; }
|
||||
public global::Akka.Actor.Settings Settings { get => _Instance.Settings; }
|
||||
|
||||
public Akka.Actor.Settings Settings { get => _Instance.Settings; }
|
||||
public global::Akka.Actor.LocalActorRef SystemGuardian { get => _Instance.SystemGuardian; }
|
||||
|
||||
public Akka.Actor.LocalActorRef SystemGuardian { get => _Instance.SystemGuardian; }
|
||||
public global::Akka.Actor.IInternalActorRef TempContainer { get => _Instance.TempContainer; }
|
||||
|
||||
public Akka.Actor.IInternalActorRef TempContainer { get => _Instance.TempContainer; }
|
||||
public global::System.Threading.Tasks.Task TerminationTask { get => _Instance.TerminationTask; }
|
||||
|
||||
public System.Threading.Tasks.Task TerminationTask { get => _Instance.TerminationTask; }
|
||||
public global::Akka.Actor.LocalActorRef Guardian { get => _Instance.Guardian; }
|
||||
|
||||
public Akka.Actor.LocalActorRef Guardian { get => _Instance.Guardian; }
|
||||
public global::Akka.Event.EventStream EventStream { get => _Instance.EventStream; }
|
||||
|
||||
public Akka.Event.EventStream EventStream { get => _Instance.EventStream; }
|
||||
public global::Akka.Actor.Address DefaultAddress { get => _Instance.DefaultAddress; }
|
||||
|
||||
public Akka.Actor.Address DefaultAddress { get => _Instance.DefaultAddress; }
|
||||
public global::Akka.Serialization.Information SerializationInformation { get => _Instance.SerializationInformation; }
|
||||
|
||||
public Akka.Serialization.Information SerializationInformation { get => _Instance.SerializationInformation; }
|
||||
public global::Akka.Event.ILoggingAdapter Log { get => _Instance.Log; }
|
||||
|
||||
public Akka.Event.ILoggingAdapter Log { get => _Instance.Log; }
|
||||
|
||||
|
||||
|
||||
public Akka.Actor.ActorPath TempPath()
|
||||
public global::Akka.Actor.ActorPath TempPath()
|
||||
{
|
||||
var result_690338229 = _Instance.TempPath();
|
||||
return result_690338229;
|
||||
}
|
||||
|
||||
public void RegisterExtraName(string name, Akka.Actor.IInternalActorRef actor)
|
||||
public void RegisterExtraName(string name, global::Akka.Actor.IInternalActorRef actor)
|
||||
{
|
||||
string name_ = name;
|
||||
Akka.Actor.IInternalActorRef actor_ = actor;
|
||||
global::Akka.Actor.IInternalActorRef actor_ = actor;
|
||||
_Instance.RegisterExtraName(name_, actor_);
|
||||
}
|
||||
|
||||
public Akka.Actor.IActorRef RootGuardianAt(Akka.Actor.Address address)
|
||||
public global::Akka.Actor.IActorRef RootGuardianAt(global::Akka.Actor.Address address)
|
||||
{
|
||||
Akka.Actor.Address address_ = address;
|
||||
global::Akka.Actor.Address address_ = address;
|
||||
var result__1703611252 = _Instance.RootGuardianAt(address_);
|
||||
return result__1703611252;
|
||||
}
|
||||
|
||||
public void RegisterTempActor(Akka.Actor.IInternalActorRef actorRef, Akka.Actor.ActorPath path)
|
||||
public void RegisterTempActor(global::Akka.Actor.IInternalActorRef actorRef, global::Akka.Actor.ActorPath path)
|
||||
{
|
||||
Akka.Actor.IInternalActorRef actorRef_ = actorRef;
|
||||
Akka.Actor.ActorPath path_ = path;
|
||||
global::Akka.Actor.IInternalActorRef actorRef_ = actorRef;
|
||||
global::Akka.Actor.ActorPath path_ = path;
|
||||
_Instance.RegisterTempActor(actorRef_, path_);
|
||||
}
|
||||
|
||||
public void UnregisterTempActor(Akka.Actor.ActorPath path)
|
||||
public void UnregisterTempActor(global::Akka.Actor.ActorPath path)
|
||||
{
|
||||
Akka.Actor.ActorPath path_ = path;
|
||||
global::Akka.Actor.ActorPath path_ = path;
|
||||
_Instance.UnregisterTempActor(path_);
|
||||
}
|
||||
|
||||
public Akka.Actor.FutureActorRef<T> CreateFutureRef<T>(System.Threading.Tasks.TaskCompletionSource<T> tcs)
|
||||
public global::Akka.Actor.FutureActorRef<T> CreateFutureRef<T>(global::System.Threading.Tasks.TaskCompletionSource<T> tcs)
|
||||
{
|
||||
System.Threading.Tasks.TaskCompletionSource<T> tcs_ = tcs;
|
||||
global::System.Threading.Tasks.TaskCompletionSource<T> tcs_ = tcs;
|
||||
var result_1137255884 = _Instance.CreateFutureRef<T>(tcs_);
|
||||
return result_1137255884;
|
||||
}
|
||||
|
||||
public void Init(Akka.Actor.Internal.ActorSystemImpl system)
|
||||
public void Init(global::Akka.Actor.Internal.ActorSystemImpl system)
|
||||
{
|
||||
Akka.Actor.Internal.ActorSystemImpl system_ = system;
|
||||
global::Akka.Actor.Internal.ActorSystemImpl system_ = system;
|
||||
_Instance.Init(system_);
|
||||
}
|
||||
|
||||
public Akka.Actor.IActorRef ResolveActorRef(string path)
|
||||
public global::Akka.Actor.IActorRef ResolveActorRef(string path)
|
||||
{
|
||||
string path_ = path;
|
||||
var result_1085051580 = _Instance.ResolveActorRef(path_);
|
||||
return result_1085051580;
|
||||
}
|
||||
|
||||
public Akka.Actor.IActorRef ResolveActorRef(Akka.Actor.ActorPath path)
|
||||
public global::Akka.Actor.IActorRef ResolveActorRef(global::Akka.Actor.ActorPath path)
|
||||
{
|
||||
Akka.Actor.ActorPath path_ = path;
|
||||
global::Akka.Actor.ActorPath path_ = path;
|
||||
var result_1085051580 = _Instance.ResolveActorRef(path_);
|
||||
return result_1085051580;
|
||||
}
|
||||
|
||||
public Akka.Actor.IInternalActorRef ActorOf(Akka.Actor.Internal.ActorSystemImpl system, Akka.Actor.Props props, Akka.Actor.IInternalActorRef supervisor, Akka.Actor.ActorPath path, bool systemService, Akka.Actor.Deploy deploy, bool lookupDeploy, bool @async)
|
||||
public global::Akka.Actor.IInternalActorRef ActorOf(global::Akka.Actor.Internal.ActorSystemImpl system, global::Akka.Actor.Props props, global::Akka.Actor.IInternalActorRef supervisor, global::Akka.Actor.ActorPath path, bool systemService, global::Akka.Actor.Deploy deploy, bool lookupDeploy, bool @async)
|
||||
{
|
||||
Akka.Actor.Internal.ActorSystemImpl system_ = system;
|
||||
Akka.Actor.Props props_ = props;
|
||||
Akka.Actor.IInternalActorRef supervisor_ = supervisor;
|
||||
Akka.Actor.ActorPath path_ = path;
|
||||
global::Akka.Actor.Internal.ActorSystemImpl system_ = system;
|
||||
global::Akka.Actor.Props props_ = props;
|
||||
global::Akka.Actor.IInternalActorRef supervisor_ = supervisor;
|
||||
global::Akka.Actor.ActorPath path_ = path;
|
||||
bool systemService_ = systemService;
|
||||
Akka.Actor.Deploy deploy_ = deploy;
|
||||
global::Akka.Actor.Deploy deploy_ = deploy;
|
||||
bool lookupDeploy_ = lookupDeploy;
|
||||
bool @async_ = @async;
|
||||
var result_540498530 = _Instance.ActorOf(system_, props_, supervisor_, path_, systemService_, deploy_, lookupDeploy_, @async_);
|
||||
return result_540498530;
|
||||
}
|
||||
|
||||
public Akka.Actor.Address GetExternalAddressFor(Akka.Actor.Address address)
|
||||
public global::Akka.Actor.Address GetExternalAddressFor(global::Akka.Actor.Address address)
|
||||
{
|
||||
Akka.Actor.Address address_ = address;
|
||||
global::Akka.Actor.Address address_ = address;
|
||||
var result_1116520814 = _Instance.GetExternalAddressFor(address_);
|
||||
return result_1116520814;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public LocalActorRefProviderProxy(Akka.Actor.LocalActorRefProvider instance)
|
||||
public LocalActorRefProviderProxy(global::Akka.Actor.LocalActorRefProvider instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
+4
-10
@@ -14,19 +14,13 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.AkkaActor
|
||||
{
|
||||
public partial interface ILocalActorRefProvider : global::Akka.Actor.IActorRefProvider
|
||||
{
|
||||
Akka.Actor.LocalActorRefProvider _Instance { get; }
|
||||
|
||||
Akka.Event.EventStream EventStream { get; }
|
||||
|
||||
Akka.Event.ILoggingAdapter Log { get; }
|
||||
|
||||
|
||||
|
||||
void RegisterExtraName(string name, Akka.Actor.IInternalActorRef actor);
|
||||
|
||||
global::Akka.Actor.LocalActorRefProvider _Instance { get; }
|
||||
|
||||
global::Akka.Event.EventStream EventStream { get; }
|
||||
|
||||
global::Akka.Event.ILoggingAdapter Log { get; }
|
||||
|
||||
void RegisterExtraName(string name, global::Akka.Actor.IInternalActorRef actor);
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
@@ -13,15 +13,11 @@ using System;
|
||||
|
||||
public partial interface INoNamespace
|
||||
{
|
||||
ProxyInterfaceSourceGeneratorTests.Source.NoNamespace _Instance { get; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.NoNamespace _Instance { get; }
|
||||
|
||||
bool Test { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#nullable restore
|
||||
+20
-28
@@ -12,22 +12,19 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
{
|
||||
public partial class ClientContextProxy : ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy, IClientContext
|
||||
public partial class ClientContextProxy : global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext
|
||||
{
|
||||
public new Microsoft.SharePoint.Client.ClientContext _Instance { get; }
|
||||
public Microsoft.SharePoint.Client.ClientRuntimeContext _InstanceClientRuntimeContext { get; }
|
||||
public new global::Microsoft.SharePoint.Client.ClientContext _Instance { get; }
|
||||
public global::Microsoft.SharePoint.Client.ClientRuntimeContext _InstanceClientRuntimeContext { get; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb Web { get => Mapster.TypeAdapter.Adapt<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb>(_Instance.Web); }
|
||||
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb Web { get => Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb>(_Instance.Web); }
|
||||
public global::Microsoft.SharePoint.Client.Site Site { get => _Instance.Site; }
|
||||
|
||||
public Microsoft.SharePoint.Client.Site Site { get => _Instance.Site; }
|
||||
public global::Microsoft.SharePoint.Client.RequestResources RequestResources { get => _Instance.RequestResources; }
|
||||
|
||||
public Microsoft.SharePoint.Client.RequestResources RequestResources { get => _Instance.RequestResources; }
|
||||
public global::System.Version ServerVersion { get => _Instance.ServerVersion; }
|
||||
|
||||
public System.Version ServerVersion { get => _Instance.ServerVersion; }
|
||||
|
||||
|
||||
|
||||
public Microsoft.SharePoint.Client.FormDigestInfo GetFormDigestDirect()
|
||||
public global::Microsoft.SharePoint.Client.FormDigestInfo GetFormDigestDirect()
|
||||
{
|
||||
var result_333437737 = _Instance.GetFormDigestDirect();
|
||||
return result_333437737;
|
||||
@@ -38,37 +35,32 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
_Instance.ExecuteQuery();
|
||||
}
|
||||
|
||||
public override System.Threading.Tasks.Task ExecuteQueryAsync()
|
||||
public override global::System.Threading.Tasks.Task ExecuteQueryAsync()
|
||||
{
|
||||
var result_737681611 = _Instance.ExecuteQueryAsync();
|
||||
return result_737681611;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public ClientContextProxy(Microsoft.SharePoint.Client.ClientContext instance) : base(instance)
|
||||
public ClientContextProxy(global::Microsoft.SharePoint.Client.ClientContext instance) : base(instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
_InstanceClientRuntimeContext = instance;
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientRuntimeContext, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext, Microsoft.SharePoint.Client.ClientRuntimeContext>.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.ClientRuntimeContext, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>.NewConfig().ConstructUsing(instance_572349648 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_572349648));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext, global::Microsoft.SharePoint.Client.ClientRuntimeContext>.NewConfig().MapWith(proxy214349770 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy214349770)._Instance);
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientObject, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject, Microsoft.SharePoint.Client.ClientObject>.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.ClientObject, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>.NewConfig().ConstructUsing(instance_205438316 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_205438316));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject, global::Microsoft.SharePoint.Client.ClientObject>.NewConfig().MapWith(proxy_437526006 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy_437526006)._Instance);
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.SecurableObject, ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject>.NewConfig().ConstructUsing(instance592284880 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance592284880));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject, Microsoft.SharePoint.Client.SecurableObject>.NewConfig().MapWith(proxy_300636294 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_300636294)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.SecurableObject, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject>.NewConfig().ConstructUsing(instance_247129254 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance_247129254));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject, global::Microsoft.SharePoint.Client.SecurableObject>.NewConfig().MapWith(proxy_117192422 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_117192422)._Instance);
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientContext, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext>.NewConfig().ConstructUsing(instance_1283184912 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy(instance_1283184912));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext, Microsoft.SharePoint.Client.ClientContext>.NewConfig().MapWith(proxy1267236400 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy) proxy1267236400)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.ClientContext, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext>.NewConfig().ConstructUsing(instance_1483513702 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy(instance_1483513702));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext, global::Microsoft.SharePoint.Client.ClientContext>.NewConfig().MapWith(proxy343311664 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy) proxy343311664)._Instance);
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.Web, ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb>.NewConfig().ConstructUsing(instance_1865313808 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.WebProxy(instance_1865313808));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb, Microsoft.SharePoint.Client.Web>.NewConfig().MapWith(proxy2115366516 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.WebProxy) proxy2115366516)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.Web, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb>.NewConfig().ConstructUsing(instance290679610 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.WebProxy(instance290679610));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb, global::Microsoft.SharePoint.Client.Web>.NewConfig().MapWith(proxy_1534869484 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.WebProxy) proxy_1534869484)._Instance);
|
||||
|
||||
|
||||
}
|
||||
|
||||
+14
-22
@@ -12,17 +12,16 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
{
|
||||
public partial class ClientObjectProxy : IClientObject
|
||||
public partial class ClientObjectProxy : global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject
|
||||
{
|
||||
public Microsoft.SharePoint.Client.ClientObject _Instance { get; }
|
||||
public global::Microsoft.SharePoint.Client.ClientObject _Instance { get; }
|
||||
|
||||
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext Context { get => Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>(_Instance.Context); }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext Context { get => Mapster.TypeAdapter.Adapt<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>(_Instance.Context); }
|
||||
|
||||
public object Tag { get => _Instance.Tag; set => _Instance.Tag = value; }
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public Microsoft.SharePoint.Client.ObjectPath Path { get => _Instance.Path; }
|
||||
public global::Microsoft.SharePoint.Client.ObjectPath Path { get => _Instance.Path; }
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public string ObjectVersion { get => _Instance.ObjectVersion; set => _Instance.ObjectVersion = value; }
|
||||
@@ -30,21 +29,19 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
[Microsoft.SharePoint.Client.PseudoRemoteAttribute]
|
||||
public bool? ServerObjectIsNull { get => _Instance.ServerObjectIsNull; }
|
||||
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject TypedObject { get => Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>(_Instance.TypedObject); }
|
||||
|
||||
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject TypedObject { get => Mapster.TypeAdapter.Adapt<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>(_Instance.TypedObject); }
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public virtual void FromJson(Microsoft.SharePoint.Client.JsonReader reader)
|
||||
public virtual void FromJson(global::Microsoft.SharePoint.Client.JsonReader reader)
|
||||
{
|
||||
Microsoft.SharePoint.Client.JsonReader reader_ = reader;
|
||||
global::Microsoft.SharePoint.Client.JsonReader reader_ = reader;
|
||||
_Instance.FromJson(reader_);
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public virtual bool CustomFromJson(Microsoft.SharePoint.Client.JsonReader reader)
|
||||
public virtual bool CustomFromJson(global::Microsoft.SharePoint.Client.JsonReader reader)
|
||||
{
|
||||
Microsoft.SharePoint.Client.JsonReader reader_ = reader;
|
||||
global::Microsoft.SharePoint.Client.JsonReader reader_ = reader;
|
||||
var result__636829107 = _Instance.CustomFromJson(reader_);
|
||||
return result__636829107;
|
||||
}
|
||||
@@ -82,21 +79,16 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public ClientObjectProxy(Microsoft.SharePoint.Client.ClientObject instance)
|
||||
public ClientObjectProxy(global::Microsoft.SharePoint.Client.ClientObject instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientRuntimeContext, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext, Microsoft.SharePoint.Client.ClientRuntimeContext>.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.ClientRuntimeContext, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>.NewConfig().ConstructUsing(instance_572349648 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_572349648));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext, global::Microsoft.SharePoint.Client.ClientRuntimeContext>.NewConfig().MapWith(proxy214349770 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy214349770)._Instance);
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientObject, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject, Microsoft.SharePoint.Client.ClientObject>.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.ClientObject, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>.NewConfig().ConstructUsing(instance_205438316 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_205438316));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject, global::Microsoft.SharePoint.Client.ClientObject>.NewConfig().MapWith(proxy_437526006 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy_437526006)._Instance);
|
||||
|
||||
|
||||
}
|
||||
|
||||
+37
-45
@@ -12,10 +12,11 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
{
|
||||
public partial class ClientRuntimeContextProxy : IClientRuntimeContext
|
||||
public partial class ClientRuntimeContextProxy : global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext
|
||||
{
|
||||
public Microsoft.SharePoint.Client.ClientRuntimeContext _Instance { get; }
|
||||
public global::Microsoft.SharePoint.Client.ClientRuntimeContext _Instance { get; }
|
||||
|
||||
public event global::System.EventHandler<global::Microsoft.SharePoint.Client.WebRequestEventArgs> ExecutingWebRequest { add { _Instance.ExecutingWebRequest += value; } remove { _Instance.ExecutingWebRequest -= value; } }
|
||||
|
||||
public string Url { get => _Instance.Url; }
|
||||
|
||||
@@ -27,11 +28,11 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
|
||||
public bool ValidateOnClient { get => _Instance.ValidateOnClient; set => _Instance.ValidateOnClient = value; }
|
||||
|
||||
public System.Net.ICredentials Credentials { get => _Instance.Credentials; set => _Instance.Credentials = value; }
|
||||
public global::System.Net.ICredentials Credentials { get => _Instance.Credentials; set => _Instance.Credentials = value; }
|
||||
|
||||
public Microsoft.SharePoint.Client.WebRequestExecutorFactory WebRequestExecutorFactory { get => _Instance.WebRequestExecutorFactory; set => _Instance.WebRequestExecutorFactory = value; }
|
||||
public global::Microsoft.SharePoint.Client.WebRequestExecutorFactory WebRequestExecutorFactory { get => _Instance.WebRequestExecutorFactory; set => _Instance.WebRequestExecutorFactory = value; }
|
||||
|
||||
public Microsoft.SharePoint.Client.ClientRequest PendingRequest { get => _Instance.PendingRequest; }
|
||||
public global::Microsoft.SharePoint.Client.ClientRequest PendingRequest { get => _Instance.PendingRequest; }
|
||||
|
||||
public bool HasPendingRequest { get => _Instance.HasPendingRequest; }
|
||||
|
||||
@@ -40,53 +41,51 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
public int RequestTimeout { get => _Instance.RequestTimeout; set => _Instance.RequestTimeout = value; }
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public System.Collections.Generic.Dictionary<string, object> StaticObjects { get => _Instance.StaticObjects; }
|
||||
public global::System.Collections.Generic.Dictionary<string, object> StaticObjects { get => _Instance.StaticObjects; }
|
||||
|
||||
public System.Version ServerSchemaVersion { get => _Instance.ServerSchemaVersion; }
|
||||
public global::System.Version ServerSchemaVersion { get => _Instance.ServerSchemaVersion; }
|
||||
|
||||
public System.Version ServerLibraryVersion { get => _Instance.ServerLibraryVersion; }
|
||||
public global::System.Version ServerLibraryVersion { get => _Instance.ServerLibraryVersion; }
|
||||
|
||||
public System.Version RequestSchemaVersion { get => _Instance.RequestSchemaVersion; set => _Instance.RequestSchemaVersion = value; }
|
||||
public global::System.Version RequestSchemaVersion { get => _Instance.RequestSchemaVersion; set => _Instance.RequestSchemaVersion = value; }
|
||||
|
||||
public string TraceCorrelationId { get => _Instance.TraceCorrelationId; set => _Instance.TraceCorrelationId = value; }
|
||||
|
||||
|
||||
|
||||
public virtual void ExecuteQuery()
|
||||
{
|
||||
_Instance.ExecuteQuery();
|
||||
}
|
||||
|
||||
public virtual void RetryQuery(Microsoft.SharePoint.Client.ClientRequest request)
|
||||
public virtual void RetryQuery(global::Microsoft.SharePoint.Client.ClientRequest request)
|
||||
{
|
||||
Microsoft.SharePoint.Client.ClientRequest request_ = request;
|
||||
global::Microsoft.SharePoint.Client.ClientRequest request_ = request;
|
||||
_Instance.RetryQuery(request_);
|
||||
}
|
||||
|
||||
public virtual System.Threading.Tasks.Task ExecuteQueryAsync()
|
||||
public virtual global::System.Threading.Tasks.Task ExecuteQueryAsync()
|
||||
{
|
||||
var result_737681611 = _Instance.ExecuteQueryAsync();
|
||||
return result_737681611;
|
||||
}
|
||||
|
||||
public virtual System.Threading.Tasks.Task RetryQueryAsync(Microsoft.SharePoint.Client.ClientRequest request)
|
||||
public virtual global::System.Threading.Tasks.Task RetryQueryAsync(global::Microsoft.SharePoint.Client.ClientRequest request)
|
||||
{
|
||||
Microsoft.SharePoint.Client.ClientRequest request_ = request;
|
||||
global::Microsoft.SharePoint.Client.ClientRequest request_ = request;
|
||||
var result_1373930992 = _Instance.RetryQueryAsync(request_);
|
||||
return result_1373930992;
|
||||
}
|
||||
|
||||
public T CastTo<T>(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject obj) where T : Microsoft.SharePoint.Client.ClientObject
|
||||
public T CastTo<T>(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject obj) where T : Microsoft.SharePoint.Client.ClientObject
|
||||
{
|
||||
Microsoft.SharePoint.Client.ClientObject obj_ = Mapster.TypeAdapter.Adapt<Microsoft.SharePoint.Client.ClientObject>(obj);
|
||||
global::Microsoft.SharePoint.Client.ClientObject obj_ = Mapster.TypeAdapter.Adapt<global::Microsoft.SharePoint.Client.ClientObject>(obj);
|
||||
var result_366781530 = _Instance.CastTo<T>(obj_);
|
||||
return result_366781530;
|
||||
}
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
public void AddQuery(Microsoft.SharePoint.Client.ClientAction query)
|
||||
public void AddQuery(global::Microsoft.SharePoint.Client.ClientAction query)
|
||||
{
|
||||
Microsoft.SharePoint.Client.ClientAction query_ = query;
|
||||
global::Microsoft.SharePoint.Client.ClientAction query_ = query;
|
||||
_Instance.AddQuery(query_);
|
||||
}
|
||||
|
||||
@@ -105,29 +104,29 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
return result__1648501661;
|
||||
}
|
||||
|
||||
public void AddClientTypeAssembly(System.Reflection.Assembly @assembly)
|
||||
public void AddClientTypeAssembly(global::System.Reflection.Assembly @assembly)
|
||||
{
|
||||
System.Reflection.Assembly @assembly_ = @assembly;
|
||||
Microsoft.SharePoint.Client.ClientRuntimeContext.AddClientTypeAssembly(@assembly_);
|
||||
global::System.Reflection.Assembly @assembly_ = @assembly;
|
||||
global::Microsoft.SharePoint.Client.ClientRuntimeContext.AddClientTypeAssembly(@assembly_);
|
||||
}
|
||||
|
||||
public void Load<T>(T clientObject, params System.Linq.Expressions.Expression<System.Func<T, object>>[] retrievals) where T : Microsoft.SharePoint.Client.ClientObject
|
||||
public void Load<T>(T clientObject, params global::System.Linq.Expressions.Expression<global::System.Func<T, object>>[] retrievals) where T : Microsoft.SharePoint.Client.ClientObject
|
||||
{
|
||||
T clientObject_ = clientObject;
|
||||
System.Linq.Expressions.Expression<System.Func<T, object>>[] retrievals_ = retrievals;
|
||||
global::System.Linq.Expressions.Expression<global::System.Func<T, object>>[] retrievals_ = retrievals;
|
||||
_Instance.Load<T>(clientObject_, retrievals_);
|
||||
}
|
||||
|
||||
public System.Collections.Generic.IEnumerable<T> LoadQuery<T>(Microsoft.SharePoint.Client.ClientObjectCollection<T> clientObjects) where T : Microsoft.SharePoint.Client.ClientObject
|
||||
public global::System.Collections.Generic.IEnumerable<T> LoadQuery<T>(global::Microsoft.SharePoint.Client.ClientObjectCollection<T> clientObjects) where T : Microsoft.SharePoint.Client.ClientObject
|
||||
{
|
||||
Microsoft.SharePoint.Client.ClientObjectCollection<T> clientObjects_ = clientObjects;
|
||||
global::Microsoft.SharePoint.Client.ClientObjectCollection<T> clientObjects_ = clientObjects;
|
||||
var result_2035927496 = _Instance.LoadQuery<T>(clientObjects_);
|
||||
return result_2035927496;
|
||||
}
|
||||
|
||||
public System.Collections.Generic.IEnumerable<T> LoadQuery<T>(System.Linq.IQueryable<T> clientObjects) where T : Microsoft.SharePoint.Client.ClientObject
|
||||
public global::System.Collections.Generic.IEnumerable<T> LoadQuery<T>(global::System.Linq.IQueryable<T> clientObjects) where T : Microsoft.SharePoint.Client.ClientObject
|
||||
{
|
||||
System.Linq.IQueryable<T> clientObjects_ = clientObjects;
|
||||
global::System.Linq.IQueryable<T> clientObjects_ = clientObjects;
|
||||
var result_2035927496 = _Instance.LoadQuery<T>(clientObjects_);
|
||||
return result_2035927496;
|
||||
}
|
||||
@@ -138,29 +137,22 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
}
|
||||
|
||||
|
||||
|
||||
public event System.EventHandler<Microsoft.SharePoint.Client.WebRequestEventArgs> ExecutingWebRequest { add { _Instance.ExecutingWebRequest += value; } remove { _Instance.ExecutingWebRequest -= value; } }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public ClientRuntimeContextProxy(Microsoft.SharePoint.Client.ClientRuntimeContext instance)
|
||||
public ClientRuntimeContextProxy(global::Microsoft.SharePoint.Client.ClientRuntimeContext instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientRuntimeContext, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext, Microsoft.SharePoint.Client.ClientRuntimeContext>.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.ClientRuntimeContext, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>.NewConfig().ConstructUsing(instance_572349648 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_572349648));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext, global::Microsoft.SharePoint.Client.ClientRuntimeContext>.NewConfig().MapWith(proxy214349770 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy214349770)._Instance);
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientObject, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject, Microsoft.SharePoint.Client.ClientObject>.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.ClientObject, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>.NewConfig().ConstructUsing(instance_205438316 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_205438316));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject, global::Microsoft.SharePoint.Client.ClientObject>.NewConfig().MapWith(proxy_437526006 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy_437526006)._Instance);
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.SecurableObject, ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject>.NewConfig().ConstructUsing(instance592284880 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance592284880));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject, Microsoft.SharePoint.Client.SecurableObject>.NewConfig().MapWith(proxy_300636294 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_300636294)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.SecurableObject, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject>.NewConfig().ConstructUsing(instance_247129254 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance_247129254));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject, global::Microsoft.SharePoint.Client.SecurableObject>.NewConfig().MapWith(proxy_117192422 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_117192422)._Instance);
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientContext, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext>.NewConfig().ConstructUsing(instance_1283184912 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy(instance_1283184912));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext, Microsoft.SharePoint.Client.ClientContext>.NewConfig().MapWith(proxy1267236400 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy) proxy1267236400)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.ClientContext, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext>.NewConfig().ConstructUsing(instance_1483513702 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy(instance_1483513702));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext, global::Microsoft.SharePoint.Client.ClientContext>.NewConfig().MapWith(proxy343311664 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy) proxy343311664)._Instance);
|
||||
|
||||
|
||||
}
|
||||
|
||||
+12
-20
@@ -12,21 +12,18 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
{
|
||||
public partial class SecurableObjectProxy : ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy, ISecurableObject
|
||||
public partial class SecurableObjectProxy : global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject
|
||||
{
|
||||
public new Microsoft.SharePoint.Client.SecurableObject _Instance { get; }
|
||||
public Microsoft.SharePoint.Client.ClientObject _InstanceClientObject { get; }
|
||||
|
||||
public new global::Microsoft.SharePoint.Client.SecurableObject _Instance { get; }
|
||||
public global::Microsoft.SharePoint.Client.ClientObject _InstanceClientObject { get; }
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject FirstUniqueAncestorSecurableObject { get => Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject>(_Instance.FirstUniqueAncestorSecurableObject); }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject FirstUniqueAncestorSecurableObject { get => Mapster.TypeAdapter.Adapt<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject>(_Instance.FirstUniqueAncestorSecurableObject); }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
public bool HasUniqueRoleAssignments { get => _Instance.HasUniqueRoleAssignments; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
public Microsoft.SharePoint.Client.RoleAssignmentCollection RoleAssignments { get => _Instance.RoleAssignments; }
|
||||
|
||||
|
||||
public global::Microsoft.SharePoint.Client.RoleAssignmentCollection RoleAssignments { get => _Instance.RoleAssignments; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
public virtual void ResetRoleInheritance()
|
||||
@@ -43,24 +40,19 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public SecurableObjectProxy(Microsoft.SharePoint.Client.SecurableObject instance) : base(instance)
|
||||
public SecurableObjectProxy(global::Microsoft.SharePoint.Client.SecurableObject instance) : base(instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
_InstanceClientObject = instance;
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientRuntimeContext, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext, Microsoft.SharePoint.Client.ClientRuntimeContext>.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.ClientRuntimeContext, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext>.NewConfig().ConstructUsing(instance_572349648 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_572349648));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext, global::Microsoft.SharePoint.Client.ClientRuntimeContext>.NewConfig().MapWith(proxy214349770 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy214349770)._Instance);
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.ClientObject, ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject, Microsoft.SharePoint.Client.ClientObject>.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.ClientObject, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject>.NewConfig().ConstructUsing(instance_205438316 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_205438316));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject, global::Microsoft.SharePoint.Client.ClientObject>.NewConfig().MapWith(proxy_437526006 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy_437526006)._Instance);
|
||||
|
||||
Mapster.TypeAdapterConfig<Microsoft.SharePoint.Client.SecurableObject, ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject>.NewConfig().ConstructUsing(instance592284880 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance592284880));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject, Microsoft.SharePoint.Client.SecurableObject>.NewConfig().MapWith(proxy_300636294 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_300636294)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::Microsoft.SharePoint.Client.SecurableObject, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject>.NewConfig().ConstructUsing(instance_247129254 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance_247129254));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject, global::Microsoft.SharePoint.Client.SecurableObject>.NewConfig().MapWith(proxy_117192422 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_117192422)._Instance);
|
||||
|
||||
|
||||
}
|
||||
|
||||
+207
-215
File diff suppressed because it is too large
Load Diff
@@ -13,20 +13,12 @@ using System;
|
||||
|
||||
public partial class NoNamespaceProxy : INoNamespace
|
||||
{
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.NoNamespace _Instance { get; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.NoNamespace _Instance { get; }
|
||||
|
||||
|
||||
public bool Test { get => _Instance.Test; set => _Instance.Test = value; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public NoNamespaceProxy(ProxyInterfaceSourceGeneratorTests.Source.NoNamespace instance)
|
||||
public NoNamespaceProxy(global::ProxyInterfaceSourceGeneratorTests.Source.NoNamespace instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
+3
-11
@@ -12,13 +12,10 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial class GenericProxy<T> : IGeneric<T>
|
||||
public partial class GenericProxy<T> : global::ProxyInterfaceSourceGeneratorTests.Source.IGeneric<T>
|
||||
{
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.Generic<T> _Instance { get; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.Generic<T> _Instance { get; }
|
||||
|
||||
|
||||
|
||||
|
||||
public T Test(T value)
|
||||
{
|
||||
T value_ = value;
|
||||
@@ -27,12 +24,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public GenericProxy(ProxyInterfaceSourceGeneratorTests.Source.Generic<T> instance)
|
||||
public GenericProxy(global::ProxyInterfaceSourceGeneratorTests.Source.Generic<T> instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
+3
-11
@@ -12,29 +12,21 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial class HumanProxy : IHuman
|
||||
public partial class HumanProxy : global::ProxyInterfaceSourceGeneratorTests.Source.IHuman
|
||||
{
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.Human _Instance { get; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.Human _Instance { get; }
|
||||
|
||||
|
||||
public bool IsAlive { get => _Instance.IsAlive; set => _Instance.IsAlive = value; }
|
||||
|
||||
public string GetterOnly { get => _Instance.GetterOnly; }
|
||||
|
||||
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_Instance.Dispose();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public HumanProxy(ProxyInterfaceSourceGeneratorTests.Source.Human instance)
|
||||
public HumanProxy(global::ProxyInterfaceSourceGeneratorTests.Source.Human instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
+1
-7
@@ -14,15 +14,9 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IGeneric<T>
|
||||
{
|
||||
ProxyInterfaceSourceGeneratorTests.Source.Generic<T> _Instance { get; }
|
||||
|
||||
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.Generic<T> _Instance { get; }
|
||||
|
||||
T Test(T value);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+51
-57
@@ -14,121 +14,115 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IHttpClient
|
||||
{
|
||||
new System.Net.Http.HttpClient _Instance { get; }
|
||||
new global::System.Net.Http.HttpClient _Instance { get; }
|
||||
|
||||
System.Net.IWebProxy DefaultProxy { get; set; }
|
||||
global::System.Net.IWebProxy DefaultProxy { get; set; }
|
||||
|
||||
System.Net.Http.Headers.HttpRequestHeaders DefaultRequestHeaders { get; }
|
||||
global::System.Net.Http.Headers.HttpRequestHeaders DefaultRequestHeaders { get; }
|
||||
|
||||
System.Version DefaultRequestVersion { get; set; }
|
||||
global::System.Version DefaultRequestVersion { get; set; }
|
||||
|
||||
System.Net.Http.HttpVersionPolicy DefaultVersionPolicy { get; set; }
|
||||
global::System.Net.Http.HttpVersionPolicy DefaultVersionPolicy { get; set; }
|
||||
|
||||
System.Uri? BaseAddress { get; set; }
|
||||
global::System.Uri? BaseAddress { get; set; }
|
||||
|
||||
System.TimeSpan Timeout { get; set; }
|
||||
global::System.TimeSpan Timeout { get; set; }
|
||||
|
||||
long MaxResponseContentBufferSize { get; set; }
|
||||
|
||||
global::System.Threading.Tasks.Task<string> GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri);
|
||||
|
||||
global::System.Threading.Tasks.Task<string> GetStringAsync(global::System.Uri? requestUri);
|
||||
|
||||
System.Threading.Tasks.Task<string> GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri);
|
||||
global::System.Threading.Tasks.Task<string> GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<string> GetStringAsync(System.Uri? requestUri);
|
||||
global::System.Threading.Tasks.Task<string> GetStringAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<string> GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<byte[]> GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri);
|
||||
|
||||
System.Threading.Tasks.Task<string> GetStringAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<byte[]> GetByteArrayAsync(global::System.Uri? requestUri);
|
||||
|
||||
System.Threading.Tasks.Task<byte[]> GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri);
|
||||
global::System.Threading.Tasks.Task<byte[]> GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<byte[]> GetByteArrayAsync(System.Uri? requestUri);
|
||||
global::System.Threading.Tasks.Task<byte[]> GetByteArrayAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<byte[]> GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.IO.Stream> GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri);
|
||||
|
||||
System.Threading.Tasks.Task<byte[]> GetByteArrayAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.IO.Stream> GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.IO.Stream> GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri);
|
||||
global::System.Threading.Tasks.Task<global::System.IO.Stream> GetStreamAsync(global::System.Uri? requestUri);
|
||||
|
||||
System.Threading.Tasks.Task<System.IO.Stream> GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.IO.Stream> GetStreamAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.IO.Stream> GetStreamAsync(System.Uri? requestUri);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri);
|
||||
|
||||
System.Threading.Tasks.Task<System.IO.Stream> GetStreamAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync(global::System.Uri? requestUri);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpCompletionOption completionOption);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync(System.Uri? requestUri);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpCompletionOption completionOption);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpCompletionOption completionOption);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync(System.Uri? requestUri, System.Net.Http.HttpCompletionOption completionOption);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync(System.Uri? requestUri, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PostAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PostAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PutAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PutAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PatchAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PatchAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> DeleteAsync(global::System.Uri? requestUri);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync(System.Uri? requestUri);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> DeleteAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
|
||||
System.Net.Http.HttpResponseMessage Send(System.Net.Http.HttpRequestMessage request);
|
||||
global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request);
|
||||
|
||||
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
|
||||
System.Net.Http.HttpResponseMessage Send(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption);
|
||||
global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request, global::System.Net.Http.HttpCompletionOption completionOption);
|
||||
|
||||
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
|
||||
System.Net.Http.HttpResponseMessage Send(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
|
||||
System.Net.Http.HttpResponseMessage Send(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Net.Http.HttpCompletionOption completionOption);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken);
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
void CancelPendingRequests();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+3
-9
@@ -14,18 +14,12 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IHttpMessageInvoker : global::System.IDisposable
|
||||
{
|
||||
System.Net.Http.HttpMessageInvoker _Instance { get; }
|
||||
|
||||
|
||||
global::System.Net.Http.HttpMessageInvoker _Instance { get; }
|
||||
|
||||
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
|
||||
System.Net.Http.HttpResponseMessage Send(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
|
||||
|
||||
global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken);
|
||||
|
||||
global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken);
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+1
-7
@@ -14,19 +14,13 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IHuman
|
||||
{
|
||||
ProxyInterfaceSourceGeneratorTests.Source.Human _Instance { get; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.Human _Instance { get; }
|
||||
|
||||
bool IsAlive { get; set; }
|
||||
|
||||
string GetterOnly { get; }
|
||||
|
||||
|
||||
|
||||
void Dispose();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+1
-5
@@ -14,15 +14,11 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IMixedVisibility
|
||||
{
|
||||
ProxyInterfaceSourceGeneratorTests.Source.MixedVisibility _Instance { get; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.MixedVisibility _Instance { get; }
|
||||
|
||||
string Foo { get; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+1
-5
@@ -14,17 +14,13 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IOperatorTest
|
||||
{
|
||||
ProxyInterfaceSourceGeneratorTests.Source.OperatorTest _Instance { get; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.OperatorTest _Instance { get; }
|
||||
|
||||
string Name { get; set; }
|
||||
|
||||
int? Id { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+8
-14
@@ -14,12 +14,12 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IPerson
|
||||
{
|
||||
new ProxyInterfaceSourceGeneratorTests.Source.Person _Instance { get; }
|
||||
new global::ProxyInterfaceSourceGeneratorTests.Source.Person _Instance { get; }
|
||||
|
||||
[System.ComponentModel.DataAnnotations.DisplayAttribute(Prompt = "MyStruct Indexer")]
|
||||
ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i] { get; set; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i] { get; set; }
|
||||
|
||||
ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i, string s] { get; set; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i, string s] { get; set; }
|
||||
|
||||
[System.ComponentModel.DataAnnotations.DisplayAttribute(ResourceType = typeof(System.Threading.PeriodicTimer))]
|
||||
string Name { get; set; }
|
||||
@@ -30,9 +30,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
|
||||
object @object { get; set; }
|
||||
|
||||
|
||||
|
||||
System.Collections.Generic.IList<ProxyInterfaceSourceGeneratorTests.Source.IHuman> AddHuman(ProxyInterfaceSourceGeneratorTests.Source.IHuman h);
|
||||
global::System.Collections.Generic.IList<global::ProxyInterfaceSourceGeneratorTests.Source.IHuman> AddHuman(global::ProxyInterfaceSourceGeneratorTests.Source.IHuman h);
|
||||
|
||||
void Void();
|
||||
|
||||
@@ -58,22 +56,18 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
|
||||
bool Generic2<T1, T2>(int x, T1 t1, T2 t2) where T1 : struct where T2 : class, new();
|
||||
|
||||
System.Threading.Tasks.Task Method1Async();
|
||||
global::System.Threading.Tasks.Task Method1Async();
|
||||
|
||||
System.Threading.Tasks.Task<int> Method2Async();
|
||||
global::System.Threading.Tasks.Task<int> Method2Async();
|
||||
|
||||
[System.ComponentModel.DataAnnotations.DisplayAttribute(Name = "M3")]
|
||||
System.Threading.Tasks.Task<string?> Method3Async();
|
||||
global::System.Threading.Tasks.Task<string?> Method3Async();
|
||||
|
||||
void CreateInvokeHttpClient(int i = 5, string? appId = null, System.Collections.Generic.IReadOnlyDictionary<string, string>? metadata = null, System.Threading.CancellationToken token = default(System.Threading.CancellationToken));
|
||||
void CreateInvokeHttpClient(int i = 5, string? appId = null, global::System.Collections.Generic.IReadOnlyDictionary<string, string>? metadata = null, global::System.Threading.CancellationToken token = default(System.Threading.CancellationToken));
|
||||
|
||||
bool TryParse(string s1, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] params int[]? ii);
|
||||
|
||||
bool TryParse(string s2, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out int? i);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+4
-10
@@ -14,7 +14,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IPersonExtends
|
||||
{
|
||||
ProxyInterfaceSourceGeneratorTests.Source.PersonExtends _Instance { get; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.PersonExtends _Instance { get; }
|
||||
|
||||
string StaticString { get; set; }
|
||||
|
||||
@@ -30,8 +30,6 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
|
||||
string GetterOnly { get; }
|
||||
|
||||
|
||||
|
||||
string StaticMethod(int x, string y);
|
||||
|
||||
void Void();
|
||||
@@ -48,17 +46,13 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
|
||||
bool Generic2<T1, T2>(int x, T1 t1, T2 t2) where T1 : struct where T2 : class, new();
|
||||
|
||||
System.Threading.Tasks.Task Method1Async();
|
||||
global::System.Threading.Tasks.Task Method1Async();
|
||||
|
||||
System.Threading.Tasks.Task<int> Method2Async();
|
||||
global::System.Threading.Tasks.Task<int> Method2Async();
|
||||
|
||||
System.Threading.Tasks.Task<string?> Method3Async();
|
||||
global::System.Threading.Tasks.Task<string?> Method3Async();
|
||||
|
||||
void Dispose();
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+1
-5
@@ -14,15 +14,11 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface ITestClassInternal
|
||||
{
|
||||
ProxyInterfaceSourceGeneratorTests.Source.TestClassInternal _Instance { get; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.TestClassInternal _Instance { get; }
|
||||
|
||||
bool Test { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
//----------------------------------------------------------------------------------------
|
||||
// <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;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IÜberGeneric<T1, TKey, KAi>
|
||||
{
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric<T1, TKey, KAi> _Instance { get; }
|
||||
|
||||
T1 Test(T1 value);
|
||||
|
||||
KAi Test(KAi value);
|
||||
|
||||
TKey Test(TKey value);
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+3
-11
@@ -12,22 +12,14 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial class MixedVisibilityProxy : IMixedVisibility
|
||||
public partial class MixedVisibilityProxy : global::ProxyInterfaceSourceGeneratorTests.Source.IMixedVisibility
|
||||
{
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.MixedVisibility _Instance { get; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.MixedVisibility _Instance { get; }
|
||||
|
||||
|
||||
public string Foo { get => _Instance.Foo; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public MixedVisibilityProxy(ProxyInterfaceSourceGeneratorTests.Source.MixedVisibility instance)
|
||||
public MixedVisibilityProxy(global::ProxyInterfaceSourceGeneratorTests.Source.MixedVisibility instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
+3
-11
@@ -12,21 +12,14 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial class OperatorTestProxy : IOperatorTest
|
||||
public partial class OperatorTestProxy : global::ProxyInterfaceSourceGeneratorTests.Source.IOperatorTest
|
||||
{
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.OperatorTest _Instance { get; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.OperatorTest _Instance { get; }
|
||||
|
||||
|
||||
public string Name { get => _Instance.Name; set => _Instance.Name = value; }
|
||||
|
||||
public int? Id { get => _Instance.Id; set => _Instance.Id = value; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static implicit operator OperatorTestProxy(string name)
|
||||
{
|
||||
return new OperatorTestProxy((OperatorTest) name);
|
||||
@@ -48,8 +41,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
}
|
||||
|
||||
|
||||
|
||||
public OperatorTestProxy(ProxyInterfaceSourceGeneratorTests.Source.OperatorTest instance)
|
||||
public OperatorTestProxy(global::ProxyInterfaceSourceGeneratorTests.Source.OperatorTest instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
+7
-15
@@ -12,11 +12,10 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial class PersonExtendsProxy : IPersonExtends
|
||||
public partial class PersonExtendsProxy : global::ProxyInterfaceSourceGeneratorTests.Source.IPersonExtends
|
||||
{
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.PersonExtends _Instance { get; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.PersonExtends _Instance { get; }
|
||||
|
||||
|
||||
public string StaticString { get => ProxyInterfaceSourceGeneratorTests.Source.PersonExtends.StaticString; set => ProxyInterfaceSourceGeneratorTests.Source.PersonExtends.StaticString = value; }
|
||||
|
||||
public string Name { get => _Instance.Name; set => _Instance.Name = value; }
|
||||
@@ -31,13 +30,11 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
|
||||
public string GetterOnly { get => _Instance.GetterOnly; }
|
||||
|
||||
|
||||
|
||||
public string StaticMethod(int x, string y)
|
||||
{
|
||||
int x_ = x;
|
||||
string y_ = y;
|
||||
var result__1647028461 = ProxyInterfaceSourceGeneratorTests.Source.PersonExtends.StaticMethod(x_, y_);
|
||||
var result__1647028461 = global::ProxyInterfaceSourceGeneratorTests.Source.PersonExtends.StaticMethod(x_, y_);
|
||||
return result__1647028461;
|
||||
}
|
||||
|
||||
@@ -90,19 +87,19 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
return result_542538942;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task Method1Async()
|
||||
public global::System.Threading.Tasks.Task Method1Async()
|
||||
{
|
||||
var result__57678382 = _Instance.Method1Async();
|
||||
return result__57678382;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<int> Method2Async()
|
||||
public global::System.Threading.Tasks.Task<int> Method2Async()
|
||||
{
|
||||
var result__57677169 = _Instance.Method2Async();
|
||||
return result__57677169;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<string?> Method3Async()
|
||||
public global::System.Threading.Tasks.Task<string?> Method3Async()
|
||||
{
|
||||
var result__57684656 = _Instance.Method3Async();
|
||||
return result__57684656;
|
||||
@@ -114,12 +111,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public PersonExtendsProxy(ProxyInterfaceSourceGeneratorTests.Source.PersonExtends instance)
|
||||
public PersonExtendsProxy(global::ProxyInterfaceSourceGeneratorTests.Source.PersonExtends instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
+17
-25
@@ -12,15 +12,14 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial class PersonProxy : ProxyInterfaceSourceGeneratorTests.Source.HumanProxy, IPerson
|
||||
public partial class PersonProxy : global::ProxyInterfaceSourceGeneratorTests.Source.HumanProxy, global::ProxyInterfaceSourceGeneratorTests.Source.IPerson
|
||||
{
|
||||
public new ProxyInterfaceSourceGeneratorTests.Source.Person _Instance { get; }
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.Human _InstanceHuman { get; }
|
||||
|
||||
public new global::ProxyInterfaceSourceGeneratorTests.Source.Person _Instance { get; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.Human _InstanceHuman { get; }
|
||||
[System.ComponentModel.DataAnnotations.DisplayAttribute(Prompt = "MyStruct Indexer")]
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i] { get => _Instance[i]; set => _Instance[i] = value; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i] { get => _Instance[i]; set => _Instance[i] = value; }
|
||||
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i, string s] { get => _Instance[i, s]; set => _Instance[i, s] = value; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i, string s] { get => _Instance[i, s]; set => _Instance[i, s] = value; }
|
||||
|
||||
[System.ComponentModel.DataAnnotations.DisplayAttribute(ResourceType = typeof(System.Threading.PeriodicTimer))]
|
||||
public string Name { get => _Instance.Name; set => _Instance.Name = value; }
|
||||
@@ -31,13 +30,11 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
|
||||
public object @object { get => _Instance.@object; set => _Instance.@object = value; }
|
||||
|
||||
|
||||
|
||||
public System.Collections.Generic.IList<ProxyInterfaceSourceGeneratorTests.Source.IHuman> AddHuman(ProxyInterfaceSourceGeneratorTests.Source.IHuman h)
|
||||
public global::System.Collections.Generic.IList<global::ProxyInterfaceSourceGeneratorTests.Source.IHuman> AddHuman(global::ProxyInterfaceSourceGeneratorTests.Source.IHuman h)
|
||||
{
|
||||
ProxyInterfaceSourceGeneratorTests.Source.Human h_ = Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.Human>(h);
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.Human h_ = Mapster.TypeAdapter.Adapt<global::ProxyInterfaceSourceGeneratorTests.Source.Human>(h);
|
||||
var result_907493286 = _Instance.AddHuman(h_);
|
||||
return Mapster.TypeAdapter.Adapt<System.Collections.Generic.IList<ProxyInterfaceSourceGeneratorTests.Source.IHuman>>(result_907493286);
|
||||
return Mapster.TypeAdapter.Adapt<global::System.Collections.Generic.IList<global::ProxyInterfaceSourceGeneratorTests.Source.IHuman>>(result_907493286);
|
||||
}
|
||||
|
||||
public void Void()
|
||||
@@ -125,31 +122,31 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
return result_542538942;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task Method1Async()
|
||||
public global::System.Threading.Tasks.Task Method1Async()
|
||||
{
|
||||
var result__57678382 = _Instance.Method1Async();
|
||||
return result__57678382;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<int> Method2Async()
|
||||
public global::System.Threading.Tasks.Task<int> Method2Async()
|
||||
{
|
||||
var result__57677169 = _Instance.Method2Async();
|
||||
return result__57677169;
|
||||
}
|
||||
|
||||
[System.ComponentModel.DataAnnotations.DisplayAttribute(Name = "M3")]
|
||||
public System.Threading.Tasks.Task<string?> Method3Async()
|
||||
public global::System.Threading.Tasks.Task<string?> Method3Async()
|
||||
{
|
||||
var result__57684656 = _Instance.Method3Async();
|
||||
return result__57684656;
|
||||
}
|
||||
|
||||
public void CreateInvokeHttpClient(int i = 5, string? appId = null, System.Collections.Generic.IReadOnlyDictionary<string, string>? metadata = null, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
|
||||
public void CreateInvokeHttpClient(int i = 5, string? appId = null, global::System.Collections.Generic.IReadOnlyDictionary<string, string>? metadata = null, global::System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
|
||||
{
|
||||
int i_ = i;
|
||||
string? appId_ = appId;
|
||||
System.Collections.Generic.IReadOnlyDictionary<string, string>? metadata_ = metadata;
|
||||
System.Threading.CancellationToken token_ = token;
|
||||
global::System.Collections.Generic.IReadOnlyDictionary<string, string>? metadata_ = metadata;
|
||||
global::System.Threading.CancellationToken token_ = token;
|
||||
_Instance.CreateInvokeHttpClient(i_, appId_, metadata_, token_);
|
||||
}
|
||||
|
||||
@@ -171,18 +168,13 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public PersonProxy(ProxyInterfaceSourceGeneratorTests.Source.Person instance) : base(instance)
|
||||
public PersonProxy(global::ProxyInterfaceSourceGeneratorTests.Source.Person instance) : base(instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
_InstanceHuman = instance;
|
||||
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.Human, ProxyInterfaceSourceGeneratorTests.Source.IHuman>.NewConfig().ConstructUsing(instance_1903550791 => new ProxyInterfaceSourceGeneratorTests.Source.HumanProxy(instance_1903550791));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.IHuman, ProxyInterfaceSourceGeneratorTests.Source.Human>.NewConfig().MapWith(proxy1075308949 => ((ProxyInterfaceSourceGeneratorTests.Source.HumanProxy) proxy1075308949)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.Human, global::ProxyInterfaceSourceGeneratorTests.Source.IHuman>.NewConfig().ConstructUsing(instance2145588841 => new global::ProxyInterfaceSourceGeneratorTests.Source.HumanProxy(instance2145588841));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.IHuman, global::ProxyInterfaceSourceGeneratorTests.Source.Human>.NewConfig().MapWith(proxy1567394325 => ((global::ProxyInterfaceSourceGeneratorTests.Source.HumanProxy) proxy1567394325)._Instance);
|
||||
|
||||
|
||||
}
|
||||
|
||||
+7
-13
@@ -14,27 +14,21 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
{
|
||||
public partial interface IClientContext
|
||||
{
|
||||
new Microsoft.SharePoint.Client.ClientContext _Instance { get; }
|
||||
new global::Microsoft.SharePoint.Client.ClientContext _Instance { get; }
|
||||
|
||||
ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb Web { get; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb Web { get; }
|
||||
|
||||
Microsoft.SharePoint.Client.Site Site { get; }
|
||||
global::Microsoft.SharePoint.Client.Site Site { get; }
|
||||
|
||||
Microsoft.SharePoint.Client.RequestResources RequestResources { get; }
|
||||
global::Microsoft.SharePoint.Client.RequestResources RequestResources { get; }
|
||||
|
||||
System.Version ServerVersion { get; }
|
||||
global::System.Version ServerVersion { get; }
|
||||
|
||||
|
||||
|
||||
Microsoft.SharePoint.Client.FormDigestInfo GetFormDigestDirect();
|
||||
global::Microsoft.SharePoint.Client.FormDigestInfo GetFormDigestDirect();
|
||||
|
||||
void ExecuteQuery();
|
||||
|
||||
System.Threading.Tasks.Task ExecuteQueryAsync();
|
||||
|
||||
|
||||
|
||||
|
||||
global::System.Threading.Tasks.Task ExecuteQueryAsync();
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+4
-10
@@ -14,14 +14,14 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
{
|
||||
public partial interface IClientObject : global::Microsoft.SharePoint.Client.IFromJson
|
||||
{
|
||||
Microsoft.SharePoint.Client.ClientObject _Instance { get; }
|
||||
global::Microsoft.SharePoint.Client.ClientObject _Instance { get; }
|
||||
|
||||
ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext Context { get; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext Context { get; }
|
||||
|
||||
object Tag { get; set; }
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
Microsoft.SharePoint.Client.ObjectPath Path { get; }
|
||||
global::Microsoft.SharePoint.Client.ObjectPath Path { get; }
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
string ObjectVersion { get; set; }
|
||||
@@ -29,9 +29,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
[Microsoft.SharePoint.Client.PseudoRemoteAttribute]
|
||||
bool? ServerObjectIsNull { get; }
|
||||
|
||||
ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject TypedObject { get; }
|
||||
|
||||
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject TypedObject { get; }
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
void Retrieve();
|
||||
@@ -44,10 +42,6 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
bool IsPropertyAvailable(string propertyName);
|
||||
|
||||
bool IsObjectPropertyInstantiated(string propertyName);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+19
-25
@@ -14,7 +14,9 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
{
|
||||
public partial interface IClientRuntimeContext : global::System.IDisposable
|
||||
{
|
||||
Microsoft.SharePoint.Client.ClientRuntimeContext _Instance { get; }
|
||||
global::Microsoft.SharePoint.Client.ClientRuntimeContext _Instance { get; }
|
||||
|
||||
event global::System.EventHandler<global::Microsoft.SharePoint.Client.WebRequestEventArgs> ExecutingWebRequest;
|
||||
|
||||
string Url { get; }
|
||||
|
||||
@@ -26,11 +28,11 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
|
||||
bool ValidateOnClient { get; set; }
|
||||
|
||||
System.Net.ICredentials Credentials { get; set; }
|
||||
global::System.Net.ICredentials Credentials { get; set; }
|
||||
|
||||
Microsoft.SharePoint.Client.WebRequestExecutorFactory WebRequestExecutorFactory { get; set; }
|
||||
global::Microsoft.SharePoint.Client.WebRequestExecutorFactory WebRequestExecutorFactory { get; set; }
|
||||
|
||||
Microsoft.SharePoint.Client.ClientRequest PendingRequest { get; }
|
||||
global::Microsoft.SharePoint.Client.ClientRequest PendingRequest { get; }
|
||||
|
||||
bool HasPendingRequest { get; }
|
||||
|
||||
@@ -39,49 +41,41 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
int RequestTimeout { get; set; }
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
System.Collections.Generic.Dictionary<string, object> StaticObjects { get; }
|
||||
global::System.Collections.Generic.Dictionary<string, object> StaticObjects { get; }
|
||||
|
||||
System.Version ServerSchemaVersion { get; }
|
||||
global::System.Version ServerSchemaVersion { get; }
|
||||
|
||||
System.Version ServerLibraryVersion { get; }
|
||||
global::System.Version ServerLibraryVersion { get; }
|
||||
|
||||
System.Version RequestSchemaVersion { get; set; }
|
||||
global::System.Version RequestSchemaVersion { get; set; }
|
||||
|
||||
string TraceCorrelationId { get; set; }
|
||||
|
||||
|
||||
|
||||
void ExecuteQuery();
|
||||
|
||||
void RetryQuery(Microsoft.SharePoint.Client.ClientRequest request);
|
||||
void RetryQuery(global::Microsoft.SharePoint.Client.ClientRequest request);
|
||||
|
||||
System.Threading.Tasks.Task ExecuteQueryAsync();
|
||||
global::System.Threading.Tasks.Task ExecuteQueryAsync();
|
||||
|
||||
System.Threading.Tasks.Task RetryQueryAsync(Microsoft.SharePoint.Client.ClientRequest request);
|
||||
global::System.Threading.Tasks.Task RetryQueryAsync(global::Microsoft.SharePoint.Client.ClientRequest request);
|
||||
|
||||
T CastTo<T>(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject obj) where T : Microsoft.SharePoint.Client.ClientObject;
|
||||
T CastTo<T>(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject obj) where T : Microsoft.SharePoint.Client.ClientObject;
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
void AddQuery(Microsoft.SharePoint.Client.ClientAction query);
|
||||
void AddQuery(global::Microsoft.SharePoint.Client.ClientAction query);
|
||||
|
||||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
||||
void AddQueryIdAndResultObject(long id, object obj);
|
||||
|
||||
object ParseObjectFromJsonString(string json);
|
||||
|
||||
void AddClientTypeAssembly(System.Reflection.Assembly @assembly);
|
||||
void AddClientTypeAssembly(global::System.Reflection.Assembly @assembly);
|
||||
|
||||
void Load<T>(T clientObject, params System.Linq.Expressions.Expression<System.Func<T, object>>[] retrievals) where T : Microsoft.SharePoint.Client.ClientObject;
|
||||
|
||||
System.Collections.Generic.IEnumerable<T> LoadQuery<T>(Microsoft.SharePoint.Client.ClientObjectCollection<T> clientObjects) where T : Microsoft.SharePoint.Client.ClientObject;
|
||||
|
||||
System.Collections.Generic.IEnumerable<T> LoadQuery<T>(System.Linq.IQueryable<T> clientObjects) where T : Microsoft.SharePoint.Client.ClientObject;
|
||||
|
||||
|
||||
|
||||
event System.EventHandler<Microsoft.SharePoint.Client.WebRequestEventArgs> ExecutingWebRequest;
|
||||
void Load<T>(T clientObject, params global::System.Linq.Expressions.Expression<global::System.Func<T, object>>[] retrievals) where T : Microsoft.SharePoint.Client.ClientObject;
|
||||
|
||||
global::System.Collections.Generic.IEnumerable<T> LoadQuery<T>(global::Microsoft.SharePoint.Client.ClientObjectCollection<T> clientObjects) where T : Microsoft.SharePoint.Client.ClientObject;
|
||||
|
||||
global::System.Collections.Generic.IEnumerable<T> LoadQuery<T>(global::System.Linq.IQueryable<T> clientObjects) where T : Microsoft.SharePoint.Client.ClientObject;
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+3
-9
@@ -14,28 +14,22 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
{
|
||||
public partial interface ISecurableObject
|
||||
{
|
||||
new Microsoft.SharePoint.Client.SecurableObject _Instance { get; }
|
||||
new global::Microsoft.SharePoint.Client.SecurableObject _Instance { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject FirstUniqueAncestorSecurableObject { get; }
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject FirstUniqueAncestorSecurableObject { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool HasUniqueRoleAssignments { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.RoleAssignmentCollection RoleAssignments { get; }
|
||||
|
||||
|
||||
global::Microsoft.SharePoint.Client.RoleAssignmentCollection RoleAssignments { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void ResetRoleInheritance();
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void BreakRoleInheritance(bool copyRoleAssignments, bool clearSubscopes);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+132
-138
@@ -14,7 +14,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
{
|
||||
public partial interface IWeb
|
||||
{
|
||||
new Microsoft.SharePoint.Client.Web _Instance { get; }
|
||||
new global::Microsoft.SharePoint.Client.Web _Instance { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string AccessRequestListUrl { get; }
|
||||
@@ -26,7 +26,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
string Acronym { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.AlertCollection Alerts { get; }
|
||||
global::Microsoft.SharePoint.Client.AlertCollection Alerts { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool AllowAutomaticASPXPageIndexing { get; set; }
|
||||
@@ -53,37 +53,37 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
bool AllowSavePublishDeclarativeWorkflowForCurrentUser { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.PropertyValues AllProperties { get; }
|
||||
global::Microsoft.SharePoint.Client.PropertyValues AllProperties { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string AlternateCssUrl { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.Guid AppInstanceId { get; }
|
||||
global::System.Guid AppInstanceId { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.AppTileCollection AppTiles { get; }
|
||||
global::Microsoft.SharePoint.Client.AppTileCollection AppTiles { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.Group AssociatedMemberGroup { get; set; }
|
||||
global::Microsoft.SharePoint.Client.Group AssociatedMemberGroup { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.Group AssociatedOwnerGroup { get; set; }
|
||||
global::Microsoft.SharePoint.Client.Group AssociatedOwnerGroup { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.Group AssociatedVisitorGroup { get; set; }
|
||||
global::Microsoft.SharePoint.Client.Group AssociatedVisitorGroup { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.User Author { get; }
|
||||
global::Microsoft.SharePoint.Client.User Author { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ContentTypeCollection AvailableContentTypes { get; }
|
||||
global::Microsoft.SharePoint.Client.ContentTypeCollection AvailableContentTypes { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.FieldCollection AvailableFields { get; }
|
||||
global::Microsoft.SharePoint.Client.FieldCollection AvailableFields { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ModernizeHomepageResult CanModernizeHomepage { get; }
|
||||
global::Microsoft.SharePoint.Client.ModernizeHomepageResult CanModernizeHomepage { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string ClassicWelcomePage { get; set; }
|
||||
@@ -98,16 +98,16 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
bool ContainsConfidentialInfo { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ContentTypeCollection ContentTypes { get; }
|
||||
global::Microsoft.SharePoint.Client.ContentTypeCollection ContentTypes { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.DateTime Created { get; }
|
||||
global::System.DateTime Created { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ChangeToken CurrentChangeToken { get; }
|
||||
global::Microsoft.SharePoint.Client.ChangeToken CurrentChangeToken { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.User CurrentUser { get; }
|
||||
global::Microsoft.SharePoint.Client.User CurrentUser { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string CustomMasterUrl { get; set; }
|
||||
@@ -116,7 +116,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
bool CustomSiteActionsDisabled { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.SPDataLeakagePreventionStatusInfo DataLeakagePreventionStatusInfo { get; }
|
||||
global::Microsoft.SharePoint.Client.SPDataLeakagePreventionStatusInfo DataLeakagePreventionStatusInfo { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string Description { get; set; }
|
||||
@@ -125,16 +125,16 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
string DescriptionForExistingLanguage { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.UserResource DescriptionResource { get; }
|
||||
global::Microsoft.SharePoint.Client.UserResource DescriptionResource { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.Collections.Generic.IEnumerable<Microsoft.SharePoint.Client.SPResourceEntry> DescriptionTranslations { get; set; }
|
||||
global::System.Collections.Generic.IEnumerable<global::Microsoft.SharePoint.Client.SPResourceEntry> DescriptionTranslations { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string DesignerDownloadUrlForCurrentUser { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.Guid DesignPackageId { get; set; }
|
||||
global::System.Guid DesignPackageId { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool DisableAppViews { get; set; }
|
||||
@@ -149,43 +149,43 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
bool DocumentLibraryCalloutOfficeWebAppPreviewersDisabled { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.BasePermissions EffectiveBasePermissions { get; }
|
||||
global::Microsoft.SharePoint.Client.BasePermissions EffectiveBasePermissions { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool EnableMinimalDownload { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.EventReceiverDefinitionCollection EventReceivers { get; }
|
||||
global::Microsoft.SharePoint.Client.EventReceiverDefinitionCollection EventReceivers { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool ExcludeFromOfflineClient { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.FeatureCollection Features { get; }
|
||||
global::Microsoft.SharePoint.Client.FeatureCollection Features { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.FieldCollection Fields { get; }
|
||||
global::Microsoft.SharePoint.Client.FieldCollection Fields { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.FolderCollection Folders { get; }
|
||||
global::Microsoft.SharePoint.Client.FolderCollection Folders { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.FooterVariantThemeType FooterEmphasis { get; set; }
|
||||
global::Microsoft.SharePoint.Client.FooterVariantThemeType FooterEmphasis { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool FooterEnabled { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.FooterLayoutType FooterLayout { get; set; }
|
||||
global::Microsoft.SharePoint.Client.FooterLayoutType FooterLayout { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool HasWebTemplateExtension { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.SPVariantThemeType HeaderEmphasis { get; set; }
|
||||
global::Microsoft.SharePoint.Client.SPVariantThemeType HeaderEmphasis { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.HeaderLayoutType HeaderLayout { get; set; }
|
||||
global::Microsoft.SharePoint.Client.HeaderLayoutType HeaderLayout { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool HideTitleInHeader { get; set; }
|
||||
@@ -194,10 +194,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
bool HorizontalQuickLaunch { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.ClientSideComponent.HostedAppsManager HostedApps { get; }
|
||||
global::Microsoft.SharePoint.ClientSideComponent.HostedAppsManager HostedApps { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.Guid Id { get; }
|
||||
global::System.Guid Id { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool IsEduClass { get; }
|
||||
@@ -224,19 +224,19 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
uint Language { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.DateTime LastItemModifiedDate { get; }
|
||||
global::System.DateTime LastItemModifiedDate { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.DateTime LastItemUserModifiedDate { get; }
|
||||
global::System.DateTime LastItemUserModifiedDate { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ListCollection Lists { get; }
|
||||
global::Microsoft.SharePoint.Client.ListCollection Lists { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ListTemplateCollection ListTemplates { get; }
|
||||
global::Microsoft.SharePoint.Client.ListTemplateCollection ListTemplates { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.LogoAlignment LogoAlignment { get; set; }
|
||||
global::Microsoft.SharePoint.Client.LogoAlignment LogoAlignment { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string MasterUrl { get; set; }
|
||||
@@ -251,7 +251,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
bool NavAudienceTargetingEnabled { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.Navigation Navigation { get; }
|
||||
global::Microsoft.SharePoint.Client.Navigation Navigation { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool NextStepsFirstRunEnabled { get; set; }
|
||||
@@ -272,10 +272,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
bool OverwriteTranslationsOnChange { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.WebInformation ParentWeb { get; }
|
||||
global::Microsoft.SharePoint.Client.WebInformation ParentWeb { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ResourcePath ResourcePath { get; }
|
||||
global::Microsoft.SharePoint.Client.ResourcePath ResourcePath { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool PreviewFeaturesEnabled { get; }
|
||||
@@ -284,43 +284,43 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
string PrimaryColor { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.PushNotificationSubscriberCollection PushNotificationSubscribers { get; }
|
||||
global::Microsoft.SharePoint.Client.PushNotificationSubscriberCollection PushNotificationSubscribers { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool QuickLaunchEnabled { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.RecycleBinItemCollection RecycleBin { get; }
|
||||
global::Microsoft.SharePoint.Client.RecycleBinItemCollection RecycleBin { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool RecycleBinEnabled { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.RegionalSettings RegionalSettings { get; }
|
||||
global::Microsoft.SharePoint.Client.RegionalSettings RegionalSettings { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string RequestAccessEmail { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.RoleDefinitionCollection RoleDefinitions { get; }
|
||||
global::Microsoft.SharePoint.Client.RoleDefinitionCollection RoleDefinitions { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.Folder RootFolder { get; }
|
||||
global::Microsoft.SharePoint.Client.Folder RootFolder { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool SaveSiteAsTemplateEnabled { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.SearchBoxInNavBarType SearchBoxInNavBar { get; set; }
|
||||
global::Microsoft.SharePoint.Client.SearchBoxInNavBarType SearchBoxInNavBar { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string SearchBoxPlaceholderText { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.SearchScopeType SearchScope { get; set; }
|
||||
global::Microsoft.SharePoint.Client.SearchScopeType SearchScope { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ResourcePath ServerRelativePath { get; }
|
||||
global::Microsoft.SharePoint.Client.ResourcePath ServerRelativePath { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string ServerRelativeUrl { get; set; }
|
||||
@@ -329,10 +329,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
bool ShowUrlStructureForCurrentUser { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SiteCollectionCorporateCatalogAccessor SiteCollectionAppCatalog { get; }
|
||||
global::Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SiteCollectionCorporateCatalogAccessor SiteCollectionAppCatalog { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.GroupCollection SiteGroups { get; }
|
||||
global::Microsoft.SharePoint.Client.GroupCollection SiteGroups { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string SiteLogoDescription { get; set; }
|
||||
@@ -341,22 +341,22 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
string SiteLogoUrl { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.List SiteUserInfoList { get; }
|
||||
global::Microsoft.SharePoint.Client.List SiteUserInfoList { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.UserCollection SiteUsers { get; }
|
||||
global::Microsoft.SharePoint.Client.UserCollection SiteUsers { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.Collections.Generic.IEnumerable<int> SupportedUILanguageIds { get; set; }
|
||||
global::System.Collections.Generic.IEnumerable<int> SupportedUILanguageIds { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool SyndicationEnabled { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.SharingState TenantAdminMembersCanShare { get; }
|
||||
global::Microsoft.SharePoint.Client.SharingState TenantAdminMembersCanShare { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TenantCorporateCatalogAccessor TenantAppCatalog { get; }
|
||||
global::Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TenantCorporateCatalogAccessor TenantAppCatalog { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool TenantTagPolicyEnabled { get; }
|
||||
@@ -365,7 +365,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
string ThemedCssFolderUrl { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ThemeInfo ThemeInfo { get; }
|
||||
global::Microsoft.SharePoint.Client.ThemeInfo ThemeInfo { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool ThirdPartyMdmEnabled { get; }
|
||||
@@ -377,10 +377,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
string TitleForExistingLanguage { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.UserResource TitleResource { get; }
|
||||
global::Microsoft.SharePoint.Client.UserResource TitleResource { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.Collections.Generic.IEnumerable<Microsoft.SharePoint.Client.SPResourceEntry> TitleTranslations { get; set; }
|
||||
global::System.Collections.Generic.IEnumerable<global::Microsoft.SharePoint.Client.SPResourceEntry> TitleTranslations { get; set; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
bool TreeViewEnabled { get; set; }
|
||||
@@ -398,10 +398,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
bool UseAccessRequestDefault { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.UserCustomActionCollection UserCustomActions { get; }
|
||||
global::Microsoft.SharePoint.Client.UserCustomActionCollection UserCustomActions { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.WebCollection Webs { get; }
|
||||
global::Microsoft.SharePoint.Client.WebCollection Webs { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
string WebTemplate { get; }
|
||||
@@ -416,73 +416,71 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
string WelcomePage { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.Workflow.WorkflowAssociationCollection WorkflowAssociations { get; }
|
||||
global::Microsoft.SharePoint.Client.Workflow.WorkflowAssociationCollection WorkflowAssociations { get; }
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.Workflow.WorkflowTemplateCollection WorkflowTemplates { get; }
|
||||
global::Microsoft.SharePoint.Client.Workflow.WorkflowTemplateCollection WorkflowTemplates { get; }
|
||||
|
||||
global::System.Uri WebUrlFromPageUrlDirect(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext context, global::System.Uri pageFullUrl);
|
||||
|
||||
|
||||
System.Uri WebUrlFromPageUrlDirect(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext context, System.Uri pageFullUrl);
|
||||
|
||||
System.Uri WebUrlFromFolderUrlDirect(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext context, System.Uri folderFullUrl);
|
||||
global::System.Uri WebUrlFromFolderUrlDirect(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext context, global::System.Uri folderFullUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<bool> DoesUserHavePermissions(Microsoft.SharePoint.Client.BasePermissions permissionMask);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<bool> DoesUserHavePermissions(global::Microsoft.SharePoint.Client.BasePermissions permissionMask);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<Microsoft.SharePoint.Client.BasePermissions> GetUserEffectivePermissions(string userName);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<global::Microsoft.SharePoint.Client.BasePermissions> GetUserEffectivePermissions(string userName);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void CreateDefaultAssociatedGroups(string userLogin, string userLogin2, string groupNameSeed);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<string> CreateOrganizationSharingLink(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<string> CreateOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void DestroyOrganizationSharingLink(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup);
|
||||
void DestroyOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<Microsoft.SharePoint.Client.SharingLinkKind> GetSharingLinkKind(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string fileUrl);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<global::Microsoft.SharePoint.Client.SharingLinkKind> GetSharingLinkKind(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string fileUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<Microsoft.SharePoint.Client.SharingLinkData> GetSharingLinkData(string linkUrl);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<global::Microsoft.SharePoint.Client.SharingLinkData> GetSharingLinkData(string linkUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<string> MapToIcon(string fileName, string progId, Microsoft.SharePoint.Client.Utilities.IconSize size);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<string> MapToIcon(string fileName, string progId, global::Microsoft.SharePoint.Client.Utilities.IconSize size);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<string> GetWebUrlFromPageUrl(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string pageFullUrl);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<string> GetWebUrlFromPageUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string pageFullUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.PushNotificationSubscriber RegisterPushNotificationSubscriber(System.Guid deviceAppInstanceId, string serviceToken);
|
||||
global::Microsoft.SharePoint.Client.PushNotificationSubscriber RegisterPushNotificationSubscriber(global::System.Guid deviceAppInstanceId, string serviceToken);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void UnregisterPushNotificationSubscriber(System.Guid deviceAppInstanceId);
|
||||
void UnregisterPushNotificationSubscriber(global::System.Guid deviceAppInstanceId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.PushNotificationSubscriberCollection GetPushNotificationSubscribersByArgs(string customArgs);
|
||||
global::Microsoft.SharePoint.Client.PushNotificationSubscriberCollection GetPushNotificationSubscribersByArgs(string customArgs);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.PushNotificationSubscriberCollection GetPushNotificationSubscribersByUser(string userName);
|
||||
global::Microsoft.SharePoint.Client.PushNotificationSubscriberCollection GetPushNotificationSubscribersByUser(string userName);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<bool> DoesPushNotificationSubscriberExist(System.Guid deviceAppInstanceId);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<bool> DoesPushNotificationSubscriberExist(global::System.Guid deviceAppInstanceId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.PushNotificationSubscriber GetPushNotificationSubscriber(System.Guid deviceAppInstanceId);
|
||||
global::Microsoft.SharePoint.Client.PushNotificationSubscriber GetPushNotificationSubscriber(global::System.Guid deviceAppInstanceId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.User GetSiteUserIncludingDeletedByPuid(string puid);
|
||||
global::Microsoft.SharePoint.Client.User GetSiteUserIncludingDeletedByPuid(string puid);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.User GetUserById(int userId);
|
||||
global::Microsoft.SharePoint.Client.User GetUserById(int userId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<bool> EnsureTenantAppCatalog(string callerId);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<bool> EnsureTenantAppCatalog(string callerId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.ClientSideComponent.StorageEntity GetStorageEntity(string key);
|
||||
global::Microsoft.SharePoint.ClientSideComponent.StorageEntity GetStorageEntity(string key);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void SetStorageEntity(string key, string value, string description, string comments);
|
||||
@@ -491,130 +489,130 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
void RemoveStorageEntity(string key);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.SharingResult ShareObject(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, string peoplePickerInput, string roleValue, int groupId, bool propagateAcl, bool sendEmail, bool includeAnonymousLinkInEmail, string emailSubject, string emailBody, bool useSimplifiedRoles);
|
||||
global::Microsoft.SharePoint.Client.SharingResult ShareObject(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, string peoplePickerInput, string roleValue, int groupId, bool propagateAcl, bool sendEmail, bool includeAnonymousLinkInEmail, string emailSubject, string emailBody, bool useSimplifiedRoles);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.SharingResult ForwardObjectLink(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, string peoplePickerInput, string emailSubject, string emailBody);
|
||||
global::Microsoft.SharePoint.Client.SharingResult ForwardObjectLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, string peoplePickerInput, string emailSubject, string emailBody);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.SharingResult UnshareObject(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url);
|
||||
global::Microsoft.SharePoint.Client.SharingResult UnshareObject(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ObjectSharingSettings GetObjectSharingSettings(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string objectUrl, int groupId, bool useSimplifiedRoles);
|
||||
global::Microsoft.SharePoint.Client.ObjectSharingSettings GetObjectSharingSettings(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string objectUrl, int groupId, bool useSimplifiedRoles);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<string> CreateAnonymousLink(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<string> CreateAnonymousLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<string> CreateAnonymousLinkWithExpiration(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, string expirationString);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<string> CreateAnonymousLinkWithExpiration(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, string expirationString);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void DeleteAllAnonymousLinksForObject(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url);
|
||||
void DeleteAllAnonymousLinksForObject(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void DeleteAnonymousLinkForObject(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup);
|
||||
void DeleteAnonymousLinkForObject(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ListCollection GetLists(Microsoft.SharePoint.Client.GetListsParameters getListsParams);
|
||||
global::Microsoft.SharePoint.Client.ListCollection GetLists(global::Microsoft.SharePoint.Client.GetListsParameters getListsParams);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.WebTemplateCollection GetAvailableWebTemplates(uint lcid, bool doIncludeCrossLanguage);
|
||||
global::Microsoft.SharePoint.Client.WebTemplateCollection GetAvailableWebTemplates(uint lcid, bool doIncludeCrossLanguage);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.List GetCatalog(int typeCatalog);
|
||||
global::Microsoft.SharePoint.Client.List GetCatalog(int typeCatalog);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.RecycleBinItemCollection GetRecycleBinItems(string pagingInfo, int rowLimit, bool isAscending, Microsoft.SharePoint.Client.RecycleBinOrderBy orderBy, Microsoft.SharePoint.Client.RecycleBinItemState itemState);
|
||||
global::Microsoft.SharePoint.Client.RecycleBinItemCollection GetRecycleBinItems(string pagingInfo, int rowLimit, bool isAscending, global::Microsoft.SharePoint.Client.RecycleBinOrderBy orderBy, global::Microsoft.SharePoint.Client.RecycleBinItemState itemState);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.RecycleBinItemCollection GetRecycleBinItemsByQueryInfo(Microsoft.SharePoint.Client.RecycleBinQueryInformation queryInfo);
|
||||
global::Microsoft.SharePoint.Client.RecycleBinItemCollection GetRecycleBinItemsByQueryInfo(global::Microsoft.SharePoint.Client.RecycleBinQueryInformation queryInfo);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ChangeCollection GetChanges(Microsoft.SharePoint.Client.ChangeQuery query);
|
||||
global::Microsoft.SharePoint.Client.ChangeCollection GetChanges(global::Microsoft.SharePoint.Client.ChangeQuery query);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.List GetList(string strUrl);
|
||||
global::Microsoft.SharePoint.Client.List GetList(string strUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.List GetListUsingPath(Microsoft.SharePoint.Client.ResourcePath path);
|
||||
global::Microsoft.SharePoint.Client.List GetListUsingPath(global::Microsoft.SharePoint.Client.ResourcePath path);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ListItem GetListItem(string strUrl);
|
||||
global::Microsoft.SharePoint.Client.ListItem GetListItem(string strUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ListItem GetListItemUsingPath(Microsoft.SharePoint.Client.ResourcePath path);
|
||||
global::Microsoft.SharePoint.Client.ListItem GetListItemUsingPath(global::Microsoft.SharePoint.Client.ResourcePath path);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ListItem GetListItemByResourceId(string resourceId);
|
||||
global::Microsoft.SharePoint.Client.ListItem GetListItemByResourceId(string resourceId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.BusinessData.MetadataModel.Entity GetEntity(string @namespace, string name);
|
||||
global::Microsoft.BusinessData.MetadataModel.Entity GetEntity(string @namespace, string name);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.BusinessData.MetadataModel.AppBdcCatalog GetAppBdcCatalogForAppInstance(System.Guid appInstanceId);
|
||||
global::Microsoft.BusinessData.MetadataModel.AppBdcCatalog GetAppBdcCatalogForAppInstance(global::System.Guid appInstanceId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.BusinessData.MetadataModel.AppBdcCatalog GetAppBdcCatalog();
|
||||
global::Microsoft.BusinessData.MetadataModel.AppBdcCatalog GetAppBdcCatalog();
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.WebCollection GetSubwebsForCurrentUser(Microsoft.SharePoint.Client.SubwebQuery query);
|
||||
global::Microsoft.SharePoint.Client.WebCollection GetSubwebsForCurrentUser(global::Microsoft.SharePoint.Client.SubwebQuery query);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<System.IO.Stream> GetSPAppContextAsStream();
|
||||
global::Microsoft.SharePoint.Client.ClientResult<global::System.IO.Stream> GetSPAppContextAsStream();
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void Update();
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.View GetViewFromUrl(string listUrl);
|
||||
global::Microsoft.SharePoint.Client.View GetViewFromUrl(string listUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.View GetViewFromPath(Microsoft.SharePoint.Client.ResourcePath listPath);
|
||||
global::Microsoft.SharePoint.Client.View GetViewFromPath(global::Microsoft.SharePoint.Client.ResourcePath listPath);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.File GetFileByServerRelativeUrl(string serverRelativeUrl);
|
||||
global::Microsoft.SharePoint.Client.File GetFileByServerRelativeUrl(string serverRelativeUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.File GetFileByServerRelativePath(Microsoft.SharePoint.Client.ResourcePath serverRelativePath);
|
||||
global::Microsoft.SharePoint.Client.File GetFileByServerRelativePath(global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.Collections.Generic.IList<Microsoft.SharePoint.Client.DocumentLibraryInformation> GetDocumentLibraries(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl);
|
||||
global::System.Collections.Generic.IList<global::Microsoft.SharePoint.Client.DocumentLibraryInformation> GetDocumentLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
System.Collections.Generic.IList<Microsoft.SharePoint.Client.DocumentLibraryInformation> GetDocumentAndMediaLibraries(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl, bool includePageLibraries);
|
||||
global::System.Collections.Generic.IList<global::Microsoft.SharePoint.Client.DocumentLibraryInformation> GetDocumentAndMediaLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl, bool includePageLibraries);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<Microsoft.SharePoint.Client.DocumentLibraryInformation> DefaultDocumentLibraryUrl(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webUrl);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<global::Microsoft.SharePoint.Client.DocumentLibraryInformation> DefaultDocumentLibraryUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.List DefaultDocumentLibrary();
|
||||
global::Microsoft.SharePoint.Client.List DefaultDocumentLibrary();
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.File GetFileById(System.Guid uniqueId);
|
||||
global::Microsoft.SharePoint.Client.File GetFileById(global::System.Guid uniqueId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.Folder GetFolderById(System.Guid uniqueId);
|
||||
global::Microsoft.SharePoint.Client.Folder GetFolderById(global::System.Guid uniqueId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.File GetFileByLinkingUrl(string linkingUrl);
|
||||
global::Microsoft.SharePoint.Client.File GetFileByLinkingUrl(string linkingUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.File GetFileByGuestUrl(string guestUrl);
|
||||
global::Microsoft.SharePoint.Client.File GetFileByGuestUrl(string guestUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.File GetFileByGuestUrlEnsureAccess(string guestUrl, bool ensureAccess);
|
||||
global::Microsoft.SharePoint.Client.File GetFileByGuestUrlEnsureAccess(string guestUrl, bool ensureAccess);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.File GetFileByWOPIFrameUrl(string wopiFrameUrl);
|
||||
global::Microsoft.SharePoint.Client.File GetFileByWOPIFrameUrl(string wopiFrameUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.File GetFileByUrl(string fileUrl);
|
||||
global::Microsoft.SharePoint.Client.File GetFileByUrl(string fileUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.Folder GetFolderByServerRelativeUrl(string serverRelativeUrl);
|
||||
global::Microsoft.SharePoint.Client.Folder GetFolderByServerRelativeUrl(string serverRelativeUrl);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.Folder GetFolderByServerRelativePath(Microsoft.SharePoint.Client.ResourcePath serverRelativePath);
|
||||
global::Microsoft.SharePoint.Client.Folder GetFolderByServerRelativePath(global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void ApplyWebTemplate(string webTemplate);
|
||||
@@ -623,28 +621,28 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
void DeleteObject();
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<System.IO.Stream> PageContextInfo(bool includeODBSettings, bool emitNavigationInfo);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<global::System.IO.Stream> PageContextInfo(bool includeODBSettings, bool emitNavigationInfo);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<System.IO.Stream> PageContextCore();
|
||||
global::Microsoft.SharePoint.Client.ClientResult<global::System.IO.Stream> PageContextCore();
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.AppInstance GetAppInstanceById(System.Guid appInstanceId);
|
||||
global::Microsoft.SharePoint.Client.AppInstance GetAppInstanceById(global::System.Guid appInstanceId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientObjectList<Microsoft.SharePoint.Client.AppInstance> GetAppInstancesByProductId(System.Guid productId);
|
||||
global::Microsoft.SharePoint.Client.ClientObjectList<global::Microsoft.SharePoint.Client.AppInstance> GetAppInstancesByProductId(global::System.Guid productId);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.AppInstance LoadAndInstallAppInSpecifiedLocale(System.IO.Stream appPackageStream, int installationLocaleLCID);
|
||||
global::Microsoft.SharePoint.Client.AppInstance LoadAndInstallAppInSpecifiedLocale(global::System.IO.Stream appPackageStream, int installationLocaleLCID);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.AppInstance LoadApp(System.IO.Stream appPackageStream, int installationLocaleLCID);
|
||||
global::Microsoft.SharePoint.Client.AppInstance LoadApp(global::System.IO.Stream appPackageStream, int installationLocaleLCID);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.ClientResult<System.Guid> AddPlaceholderUser(string listId, string placeholderText);
|
||||
global::Microsoft.SharePoint.Client.ClientResult<global::System.Guid> AddPlaceholderUser(string listId, string placeholderText);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.AppInstance LoadAndInstallApp(System.IO.Stream appPackageStream);
|
||||
global::Microsoft.SharePoint.Client.AppInstance LoadAndInstallApp(global::System.IO.Stream appPackageStream);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void SetAccessRequestSiteDescriptionAndUpdate(string description);
|
||||
@@ -662,17 +660,13 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP
|
||||
void RemoveSupportedUILanguage(int lcid);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.User EnsureUser(string logonName);
|
||||
global::Microsoft.SharePoint.Client.User EnsureUser(string logonName);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
Microsoft.SharePoint.Client.User EnsureUserByObjectId(System.Guid objectId, System.Guid tenantId, Microsoft.SharePoint.Client.Utilities.PrincipalType principalType);
|
||||
global::Microsoft.SharePoint.Client.User EnsureUserByObjectId(global::System.Guid objectId, global::System.Guid tenantId, global::Microsoft.SharePoint.Client.Utilities.PrincipalType principalType);
|
||||
|
||||
[Microsoft.SharePoint.Client.RemoteAttribute]
|
||||
void ApplyTheme(string colorPaletteUrl, string fontSchemeUrl, string backgroundImageUrl, bool shareGenerated);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+3
-11
@@ -12,22 +12,14 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
internal partial class TestClassInternalProxy : ITestClassInternal
|
||||
internal partial class TestClassInternalProxy : global::ProxyInterfaceSourceGeneratorTests.Source.ITestClassInternal
|
||||
{
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.TestClassInternal _Instance { get; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.TestClassInternal _Instance { get; }
|
||||
|
||||
|
||||
public bool Test { get => _Instance.Test; set => _Instance.Test = value; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public TestClassInternalProxy(ProxyInterfaceSourceGeneratorTests.Source.TestClassInternal instance)
|
||||
public TestClassInternalProxy(global::ProxyInterfaceSourceGeneratorTests.Source.TestClassInternal instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
//----------------------------------------------------------------------------------------
|
||||
// <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;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial class ÜberGenericProxy<T1, TKey, KAi> : global::ProxyInterfaceSourceGeneratorTests.Source.IÜberGeneric<T1, TKey, KAi>
|
||||
{
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric<T1, TKey, KAi> _Instance { get; }
|
||||
|
||||
public T1 Test(T1 value)
|
||||
{
|
||||
T1 value_ = value;
|
||||
var result__1701808026 = _Instance.Test(value_);
|
||||
return result__1701808026;
|
||||
}
|
||||
|
||||
public KAi Test(KAi value)
|
||||
{
|
||||
KAi value_ = value;
|
||||
var result__1701808026 = _Instance.Test(value_);
|
||||
return result__1701808026;
|
||||
}
|
||||
|
||||
public TKey Test(TKey value)
|
||||
{
|
||||
TKey value_ = value;
|
||||
var result__1701808026 = _Instance.Test(value_);
|
||||
return result__1701808026;
|
||||
}
|
||||
|
||||
|
||||
public ÜberGenericProxy(global::ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric<T1, TKey, KAi> instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
+122
-130
@@ -12,377 +12,374 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial class HttpClientProxy : ProxyInterfaceSourceGeneratorTests.Source.HttpMessageInvokerProxy, IHttpClient
|
||||
public partial class HttpClientProxy : global::ProxyInterfaceSourceGeneratorTests.Source.HttpMessageInvokerProxy, global::ProxyInterfaceSourceGeneratorTests.Source.IHttpClient
|
||||
{
|
||||
public new System.Net.Http.HttpClient _Instance { get; }
|
||||
public System.Net.Http.HttpMessageInvoker _InstanceHttpMessageInvoker { get; }
|
||||
public new global::System.Net.Http.HttpClient _Instance { get; }
|
||||
public global::System.Net.Http.HttpMessageInvoker _InstanceHttpMessageInvoker { get; }
|
||||
public global::System.Net.IWebProxy DefaultProxy { get => System.Net.Http.HttpClient.DefaultProxy; set => System.Net.Http.HttpClient.DefaultProxy = value; }
|
||||
|
||||
public System.Net.IWebProxy DefaultProxy { get => System.Net.Http.HttpClient.DefaultProxy; set => System.Net.Http.HttpClient.DefaultProxy = value; }
|
||||
public global::System.Net.Http.Headers.HttpRequestHeaders DefaultRequestHeaders { get => _Instance.DefaultRequestHeaders; }
|
||||
|
||||
public System.Net.Http.Headers.HttpRequestHeaders DefaultRequestHeaders { get => _Instance.DefaultRequestHeaders; }
|
||||
public global::System.Version DefaultRequestVersion { get => _Instance.DefaultRequestVersion; set => _Instance.DefaultRequestVersion = value; }
|
||||
|
||||
public System.Version DefaultRequestVersion { get => _Instance.DefaultRequestVersion; set => _Instance.DefaultRequestVersion = value; }
|
||||
public global::System.Net.Http.HttpVersionPolicy DefaultVersionPolicy { get => _Instance.DefaultVersionPolicy; set => _Instance.DefaultVersionPolicy = value; }
|
||||
|
||||
public System.Net.Http.HttpVersionPolicy DefaultVersionPolicy { get => _Instance.DefaultVersionPolicy; set => _Instance.DefaultVersionPolicy = value; }
|
||||
public global::System.Uri? BaseAddress { get => _Instance.BaseAddress; set => _Instance.BaseAddress = value; }
|
||||
|
||||
public System.Uri? BaseAddress { get => _Instance.BaseAddress; set => _Instance.BaseAddress = value; }
|
||||
|
||||
public System.TimeSpan Timeout { get => _Instance.Timeout; set => _Instance.Timeout = value; }
|
||||
public global::System.TimeSpan Timeout { get => _Instance.Timeout; set => _Instance.Timeout = value; }
|
||||
|
||||
public long MaxResponseContentBufferSize { get => _Instance.MaxResponseContentBufferSize; set => _Instance.MaxResponseContentBufferSize = value; }
|
||||
|
||||
|
||||
|
||||
public System.Threading.Tasks.Task<string> GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri)
|
||||
public global::System.Threading.Tasks.Task<string> GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
var result_1347886741 = _Instance.GetStringAsync(requestUri_);
|
||||
return result_1347886741;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<string> GetStringAsync(System.Uri? requestUri)
|
||||
public global::System.Threading.Tasks.Task<string> GetStringAsync(global::System.Uri? requestUri)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
var result_1347886741 = _Instance.GetStringAsync(requestUri_);
|
||||
return result_1347886741;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<string> GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<string> GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_1347886741 = _Instance.GetStringAsync(requestUri_, cancellationToken_);
|
||||
return result_1347886741;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<string> GetStringAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<string> GetStringAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_1347886741 = _Instance.GetStringAsync(requestUri_, cancellationToken_);
|
||||
return result_1347886741;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<byte[]> GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri)
|
||||
public global::System.Threading.Tasks.Task<byte[]> GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
var result__1359336953 = _Instance.GetByteArrayAsync(requestUri_);
|
||||
return result__1359336953;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<byte[]> GetByteArrayAsync(System.Uri? requestUri)
|
||||
public global::System.Threading.Tasks.Task<byte[]> GetByteArrayAsync(global::System.Uri? requestUri)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
var result__1359336953 = _Instance.GetByteArrayAsync(requestUri_);
|
||||
return result__1359336953;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<byte[]> GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<byte[]> GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result__1359336953 = _Instance.GetByteArrayAsync(requestUri_, cancellationToken_);
|
||||
return result__1359336953;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<byte[]> GetByteArrayAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<byte[]> GetByteArrayAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result__1359336953 = _Instance.GetByteArrayAsync(requestUri_, cancellationToken_);
|
||||
return result__1359336953;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.IO.Stream> GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri)
|
||||
public global::System.Threading.Tasks.Task<global::System.IO.Stream> GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
var result_355326142 = _Instance.GetStreamAsync(requestUri_);
|
||||
return result_355326142;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.IO.Stream> GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.IO.Stream> GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_355326142 = _Instance.GetStreamAsync(requestUri_, cancellationToken_);
|
||||
return result_355326142;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.IO.Stream> GetStreamAsync(System.Uri? requestUri)
|
||||
public global::System.Threading.Tasks.Task<global::System.IO.Stream> GetStreamAsync(global::System.Uri? requestUri)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
var result_355326142 = _Instance.GetStreamAsync(requestUri_);
|
||||
return result_355326142;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.IO.Stream> GetStreamAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.IO.Stream> GetStreamAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_355326142 = _Instance.GetStreamAsync(requestUri_, cancellationToken_);
|
||||
return result_355326142;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
var result_1805284658 = _Instance.GetAsync(requestUri_);
|
||||
return result_1805284658;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync(System.Uri? requestUri)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync(global::System.Uri? requestUri)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
var result_1805284658 = _Instance.GetAsync(requestUri_);
|
||||
return result_1805284658;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpCompletionOption completionOption)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpCompletionOption completionOption)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
global::System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
var result_1805284658 = _Instance.GetAsync(requestUri_, completionOption_);
|
||||
return result_1805284658;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync(System.Uri? requestUri, System.Net.Http.HttpCompletionOption completionOption)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpCompletionOption completionOption)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
var result_1805284658 = _Instance.GetAsync(requestUri_, completionOption_);
|
||||
return result_1805284658;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_1805284658 = _Instance.GetAsync(requestUri_, cancellationToken_);
|
||||
return result_1805284658;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_1805284658 = _Instance.GetAsync(requestUri_, cancellationToken_);
|
||||
return result_1805284658;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_1805284658 = _Instance.GetAsync(requestUri_, completionOption_, cancellationToken_);
|
||||
return result_1805284658;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetAsync(System.Uri? requestUri, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> GetAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_1805284658 = _Instance.GetAsync(requestUri_, completionOption_, cancellationToken_);
|
||||
return result_1805284658;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
var result__1705712948 = _Instance.PostAsync(requestUri_, content_);
|
||||
return result__1705712948;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PostAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
var result__1705712948 = _Instance.PostAsync(requestUri_, content_);
|
||||
return result__1705712948;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result__1705712948 = _Instance.PostAsync(requestUri_, content_, cancellationToken_);
|
||||
return result__1705712948;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PostAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PostAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result__1705712948 = _Instance.PostAsync(requestUri_, content_, cancellationToken_);
|
||||
return result__1705712948;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
var result_182918739 = _Instance.PutAsync(requestUri_, content_);
|
||||
return result_182918739;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PutAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
var result_182918739 = _Instance.PutAsync(requestUri_, content_);
|
||||
return result_182918739;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_182918739 = _Instance.PutAsync(requestUri_, content_, cancellationToken_);
|
||||
return result_182918739;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PutAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PutAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_182918739 = _Instance.PutAsync(requestUri_, content_, cancellationToken_);
|
||||
return result_182918739;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
var result_910894592 = _Instance.PatchAsync(requestUri_, content_);
|
||||
return result_910894592;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PatchAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
var result_910894592 = _Instance.PatchAsync(requestUri_, content_);
|
||||
return result_910894592;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_910894592 = _Instance.PatchAsync(requestUri_, content_, cancellationToken_);
|
||||
return result_910894592;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> PatchAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> PatchAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Net.Http.HttpContent? content_ = content;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Net.Http.HttpContent? content_ = content;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_910894592 = _Instance.PatchAsync(requestUri_, content_, cancellationToken_);
|
||||
return result_910894592;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
var result_534537427 = _Instance.DeleteAsync(requestUri_);
|
||||
return result_534537427;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync(System.Uri? requestUri)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> DeleteAsync(global::System.Uri? requestUri)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
var result_534537427 = _Instance.DeleteAsync(requestUri_);
|
||||
return result_534537427;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
string? requestUri_ = requestUri;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_534537427 = _Instance.DeleteAsync(requestUri_, cancellationToken_);
|
||||
return result_534537427;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> DeleteAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> DeleteAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Uri? requestUri_ = requestUri;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Uri? requestUri_ = requestUri;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result_534537427 = _Instance.DeleteAsync(requestUri_, cancellationToken_);
|
||||
return result_534537427;
|
||||
}
|
||||
|
||||
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
|
||||
public System.Net.Http.HttpResponseMessage Send(System.Net.Http.HttpRequestMessage request)
|
||||
public global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request)
|
||||
{
|
||||
System.Net.Http.HttpRequestMessage request_ = request;
|
||||
global::System.Net.Http.HttpRequestMessage request_ = request;
|
||||
var result__989347188 = _Instance.Send(request_);
|
||||
return result__989347188;
|
||||
}
|
||||
|
||||
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
|
||||
public System.Net.Http.HttpResponseMessage Send(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption)
|
||||
public global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request, global::System.Net.Http.HttpCompletionOption completionOption)
|
||||
{
|
||||
System.Net.Http.HttpRequestMessage request_ = request;
|
||||
System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
global::System.Net.Http.HttpRequestMessage request_ = request;
|
||||
global::System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
var result__989347188 = _Instance.Send(request_, completionOption_);
|
||||
return result__989347188;
|
||||
}
|
||||
|
||||
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
|
||||
public override System.Net.Http.HttpResponseMessage Send(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)
|
||||
public override global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Net.Http.HttpRequestMessage request_ = request;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Net.Http.HttpRequestMessage request_ = request;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result__989347188 = _Instance.Send(request_, cancellationToken_);
|
||||
return result__989347188;
|
||||
}
|
||||
|
||||
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
|
||||
public System.Net.Http.HttpResponseMessage Send(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Net.Http.HttpRequestMessage request_ = request;
|
||||
System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Net.Http.HttpRequestMessage request_ = request;
|
||||
global::System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result__989347188 = _Instance.Send(request_, completionOption_, cancellationToken_);
|
||||
return result__989347188;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request)
|
||||
{
|
||||
System.Net.Http.HttpRequestMessage request_ = request;
|
||||
global::System.Net.Http.HttpRequestMessage request_ = request;
|
||||
var result__1161702976 = _Instance.SendAsync(request_);
|
||||
return result__1161702976;
|
||||
}
|
||||
|
||||
public override System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)
|
||||
public override global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Net.Http.HttpRequestMessage request_ = request;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Net.Http.HttpRequestMessage request_ = request;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result__1161702976 = _Instance.SendAsync(request_, cancellationToken_);
|
||||
return result__1161702976;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Net.Http.HttpCompletionOption completionOption)
|
||||
{
|
||||
System.Net.Http.HttpRequestMessage request_ = request;
|
||||
System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
global::System.Net.Http.HttpRequestMessage request_ = request;
|
||||
global::System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
var result__1161702976 = _Instance.SendAsync(request_, completionOption_);
|
||||
return result__1161702976;
|
||||
}
|
||||
|
||||
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken)
|
||||
public global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Net.Http.HttpRequestMessage request_ = request;
|
||||
System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Net.Http.HttpRequestMessage request_ = request;
|
||||
global::System.Net.Http.HttpCompletionOption completionOption_ = completionOption;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result__1161702976 = _Instance.SendAsync(request_, completionOption_, cancellationToken_);
|
||||
return result__1161702976;
|
||||
}
|
||||
@@ -393,12 +390,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public HttpClientProxy(System.Net.Http.HttpClient instance) : base(instance)
|
||||
public HttpClientProxy(global::System.Net.Http.HttpClient instance) : base(instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
_InstanceHttpMessageInvoker = instance;
|
||||
|
||||
+9
-17
@@ -12,26 +12,23 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial class HttpMessageInvokerProxy : IHttpMessageInvoker
|
||||
public partial class HttpMessageInvokerProxy : global::ProxyInterfaceSourceGeneratorTests.Source.IHttpMessageInvoker
|
||||
{
|
||||
public System.Net.Http.HttpMessageInvoker _Instance { get; }
|
||||
public global::System.Net.Http.HttpMessageInvoker _Instance { get; }
|
||||
|
||||
|
||||
|
||||
|
||||
[System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
|
||||
public virtual System.Net.Http.HttpResponseMessage Send(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)
|
||||
public virtual global::System.Net.Http.HttpResponseMessage Send(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Net.Http.HttpRequestMessage request_ = request;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Net.Http.HttpRequestMessage request_ = request;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result__989347188 = _Instance.Send(request_, cancellationToken_);
|
||||
return result__989347188;
|
||||
}
|
||||
|
||||
public virtual System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)
|
||||
public virtual global::System.Threading.Tasks.Task<global::System.Net.Http.HttpResponseMessage> SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken)
|
||||
{
|
||||
System.Net.Http.HttpRequestMessage request_ = request;
|
||||
System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
global::System.Net.Http.HttpRequestMessage request_ = request;
|
||||
global::System.Threading.CancellationToken cancellationToken_ = cancellationToken;
|
||||
var result__1161702976 = _Instance.SendAsync(request_, cancellationToken_);
|
||||
return result__1161702976;
|
||||
}
|
||||
@@ -42,12 +39,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public HttpMessageInvokerProxy(System.Net.Http.HttpMessageInvoker instance)
|
||||
public HttpMessageInvokerProxy(global::System.Net.Http.HttpMessageInvoker instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
+11
-25
@@ -70,17 +70,11 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial interface IFoo
|
||||
{
|
||||
ProxyInterfaceSourceGeneratorTests.Source.Foo _Instance { get; }
|
||||
|
||||
ProxyInterfaceSourceGeneratorTests.Source.IFoo[] Foos { get; set; }
|
||||
|
||||
|
||||
|
||||
ProxyInterfaceSourceGeneratorTests.Source.IFoo[] DoSomethingAndGetAnArrayOfFoos();
|
||||
|
||||
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.Foo _Instance { get; }
|
||||
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.IFoo[] Foos { get; set; }
|
||||
|
||||
global::ProxyInterfaceSourceGeneratorTests.Source.IFoo[] DoSomethingAndGetAnArrayOfFoos();
|
||||
}
|
||||
}
|
||||
#nullable restore
|
||||
@@ -102,34 +96,26 @@ using System;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public partial class FooProxy : IFoo
|
||||
public partial class FooProxy : global::ProxyInterfaceSourceGeneratorTests.Source.IFoo
|
||||
{
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.Foo _Instance { get; }
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.Foo _Instance { get; }
|
||||
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.IFoo[] Foos { get => Mapster.TypeAdapter.Adapt<global::ProxyInterfaceSourceGeneratorTests.Source.IFoo[]>(_Instance.Foos); set => _Instance.Foos = Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.Foo[]>(value); }
|
||||
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.IFoo[] Foos { get => Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.IFoo[]>(_Instance.Foos); set => _Instance.Foos = Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.Foo[]>(value); }
|
||||
|
||||
|
||||
|
||||
public ProxyInterfaceSourceGeneratorTests.Source.IFoo[] DoSomethingAndGetAnArrayOfFoos()
|
||||
public global::ProxyInterfaceSourceGeneratorTests.Source.IFoo[] DoSomethingAndGetAnArrayOfFoos()
|
||||
{
|
||||
var result_1603865878 = _Instance.DoSomethingAndGetAnArrayOfFoos();
|
||||
return Mapster.TypeAdapter.Adapt<ProxyInterfaceSourceGeneratorTests.Source.IFoo[]>(result_1603865878);
|
||||
return Mapster.TypeAdapter.Adapt<global::ProxyInterfaceSourceGeneratorTests.Source.IFoo[]>(result_1603865878);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public FooProxy(ProxyInterfaceSourceGeneratorTests.Source.Foo instance)
|
||||
public FooProxy(global::ProxyInterfaceSourceGeneratorTests.Source.Foo instance)
|
||||
{
|
||||
_Instance = instance;
|
||||
|
||||
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.Foo, ProxyInterfaceSourceGeneratorTests.Source.IFoo>.NewConfig().ConstructUsing(instance242969081 => new ProxyInterfaceSourceGeneratorTests.Source.FooProxy(instance242969081));
|
||||
Mapster.TypeAdapterConfig<ProxyInterfaceSourceGeneratorTests.Source.IFoo, ProxyInterfaceSourceGeneratorTests.Source.Foo>.NewConfig().MapWith(proxy_1660896935 => ((ProxyInterfaceSourceGeneratorTests.Source.FooProxy) proxy_1660896935)._Instance);
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.Foo, global::ProxyInterfaceSourceGeneratorTests.Source.IFoo>.NewConfig().ConstructUsing(instance2058774601 => new global::ProxyInterfaceSourceGeneratorTests.Source.FooProxy(instance2058774601));
|
||||
Mapster.TypeAdapterConfig<global::ProxyInterfaceSourceGeneratorTests.Source.IFoo, global::ProxyInterfaceSourceGeneratorTests.Source.Foo>.NewConfig().MapWith(proxy1662609081 => ((global::ProxyInterfaceSourceGeneratorTests.Source.FooProxy) proxy1662609081)._Instance);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class ProxyInterfaceSourceGeneratorTest
|
||||
var fileNames = new[]
|
||||
{
|
||||
"ProxyInterfaceSourceGeneratorTests.Source.IGeneric.g.cs",
|
||||
"ProxyInterfaceSourceGeneratorTests.Source.Generic_T__1Proxy.g.cs"
|
||||
"ProxyInterfaceSourceGeneratorTests.Source.Generic`1Proxy.g.cs"
|
||||
};
|
||||
|
||||
var path = "./Source/IGeneric.cs";
|
||||
@@ -128,6 +128,48 @@ public class ProxyInterfaceSourceGeneratorTest
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GenerateFiles_ForÜberGenericType_Should_GenerateCorrectFiles()
|
||||
{
|
||||
// Arrange
|
||||
var fileNames = new[]
|
||||
{
|
||||
"ProxyInterfaceSourceGeneratorTests.Source.IÜberGeneric.g.cs",
|
||||
"ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric`3Proxy.g.cs"
|
||||
};
|
||||
|
||||
var path = "./Source/IÜberGeneric.cs";
|
||||
var sourceFile = new SourceFile
|
||||
{
|
||||
Path = path,
|
||||
Text = File.ReadAllText(path),
|
||||
AttributeToAddToInterface = new ExtraAttribute
|
||||
{
|
||||
Name = "ProxyInterfaceGenerator.Proxy",
|
||||
ArgumentList = "typeof(ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric<>)"
|
||||
}
|
||||
};
|
||||
|
||||
// Act
|
||||
var result = _sut.Execute(new[]
|
||||
{
|
||||
sourceFile
|
||||
});
|
||||
|
||||
// Assert
|
||||
result.Valid.Should().BeTrue();
|
||||
result.Files.Should().HaveCount(fileNames.Length + 1);
|
||||
|
||||
foreach (var fileName in fileNames.Select((fileName, index) => new { fileName, index }))
|
||||
{
|
||||
var builder = result.Files[fileName.index + 1]; // +1 means skip the attribute
|
||||
builder.Path.Should().EndWith(fileName.fileName);
|
||||
|
||||
if (Write) File.WriteAllText($"../../../Destination/{fileName.fileName}", builder.Text);
|
||||
builder.Text.Should().Be(File.ReadAllText($"../../../Destination/{fileName.fileName}"));
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GenerateFiles_ForClassWithOperator_Should_GenerateCorrectFiles()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
public interface IÜberGeneric
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace ProxyInterfaceSourceGeneratorTests.Source
|
||||
{
|
||||
/// <summary>
|
||||
/// Fun fact, Umlaute are valid in c#
|
||||
/// </summary>
|
||||
/// <typeparam name="T1"></typeparam>
|
||||
/// <typeparam name="TKey"></typeparam>
|
||||
/// <typeparam name="KAi"></typeparam>
|
||||
public class ÜberGeneric<T1, TKey, KAi>
|
||||
{
|
||||
public T1 Test(T1 value) => value;
|
||||
|
||||
public KAi Test(KAi value) => value;
|
||||
|
||||
public TKey Test(TKey value) => value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user