diff --git a/src/ProxyInterfaceSourceGenerator/Extensions/NamedTypeSymbolExtensions.cs b/src/ProxyInterfaceSourceGenerator/Extensions/NamedTypeSymbolExtensions.cs index dc37dcb..50a7712 100644 --- a/src/ProxyInterfaceSourceGenerator/Extensions/NamedTypeSymbolExtensions.cs +++ b/src/ProxyInterfaceSourceGenerator/Extensions/NamedTypeSymbolExtensions.cs @@ -23,14 +23,6 @@ internal static class NamedTypeSymbolExtensions return types; } - public static string GetFileName(this INamedTypeSymbol namedTypeSymbol) - { - var typeName = namedTypeSymbol.GetFullType(); - return !(typeName.Contains('<') && typeName.Contains('>')) ? - typeName : - $"{typeName.Replace('<', '_').Replace('>', '_').Replace(", ", "-")}_{typeName.Count(c => c == ',') + 1}"; - } - public static string GetFullType(this INamedTypeSymbol namedTypeSymbol) { // https://www.codeproject.com/Articles/861548/Roslyn-Code-Analysis-in-Easy-Samples-Part diff --git a/src/ProxyInterfaceSourceGenerator/Extensions/PropertySymbolExtensions.cs b/src/ProxyInterfaceSourceGenerator/Extensions/PropertySymbolExtensions.cs index f90c66a..07b7e5b 100644 --- a/src/ProxyInterfaceSourceGenerator/Extensions/PropertySymbolExtensions.cs +++ b/src/ProxyInterfaceSourceGenerator/Extensions/PropertySymbolExtensions.cs @@ -1,5 +1,6 @@ using Microsoft.CodeAnalysis; using ProxyInterfaceSourceGenerator.Enums; +using ProxyInterfaceSourceGenerator.FileGenerators; namespace ProxyInterfaceSourceGenerator.Extensions; @@ -20,7 +21,8 @@ internal static class PropertySymbolExtensions var get = getIsPublic ? "get; " : string.Empty; var set = setIsPublic ? "set; " : string.Empty; - var type = !string.IsNullOrEmpty(overrideType) ? overrideType : $"{property.Type}"; + var type = !string.IsNullOrEmpty(overrideType) ? overrideType + : BaseGenerator.FixType(property.Type.ToFullyQualifiedDisplayString(), property.NullableAnnotation); return (type!, property.GetSanitizedName(), $"{{ {get}{set}}}"); } diff --git a/src/ProxyInterfaceSourceGenerator/Extensions/SymbolExtensions.cs b/src/ProxyInterfaceSourceGenerator/Extensions/SymbolExtensions.cs index 5d015c5..be828a3 100644 --- a/src/ProxyInterfaceSourceGenerator/Extensions/SymbolExtensions.cs +++ b/src/ProxyInterfaceSourceGenerator/Extensions/SymbolExtensions.cs @@ -1,5 +1,6 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; +using System.Text; namespace ProxyInterfaceSourceGenerator.Extensions; @@ -12,13 +13,6 @@ internal static class SymbolExtensions "System.Runtime.CompilerServices.AsyncStateMachineAttribute" }; - public static string GetAttributesPrefix(this ISymbol symbol) - { - var attributes = symbol.GetAttributesAsList(); - - return attributes.Any() ? $"{string.Join(" ", attributes)} " : string.Empty; - } - public static IReadOnlyList GetAttributesAsList(this ISymbol symbol) { return symbol @@ -28,12 +22,56 @@ internal static class SymbolExtensions .ToArray(); } - public static bool IsPublic(this ISymbol? symbol) => - symbol is { DeclaredAccessibility: Accessibility.Public }; + public static string GetAttributesPrefix(this ISymbol symbol) + { + var attributes = symbol.GetAttributesAsList(); + + return attributes.Any() ? $"{string.Join(" ", attributes)} " : string.Empty; + } + + //https://stackoverflow.com/questions/27105909/get-fully-qualified-metadata-name-in-roslyn + public static string GetFullMetadataName(this ISymbol s) + { + if (s == null || IsRootNamespace(s)) + { + return string.Empty; + } + + var sb = new StringBuilder(s.MetadataName); + var last = s; + + s = s.ContainingSymbol; + + while (!IsRootNamespace(s)) + { + if (s is ITypeSymbol && last is ITypeSymbol) + { + sb.Insert(0, '+'); + } + else + { + sb.Insert(0, '.'); + } + + sb.Insert(0, s.OriginalDefinition.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)); + s = s.ContainingSymbol; + } + + return sb.ToString(); + } + + public static string GetSanitizedName(this ISymbol symbol) => + symbol.IsKeywordOrReserved() ? $"@{symbol.Name}" : symbol.Name; public static bool IsKeywordOrReserved(this ISymbol symbol) => SyntaxFacts.GetKeywordKind(symbol.Name) != SyntaxKind.None || SyntaxFacts.GetContextualKeywordKind(symbol.Name) != SyntaxKind.None; - public static string GetSanitizedName(this ISymbol symbol) => - symbol.IsKeywordOrReserved() ? $"@{symbol.Name}" : symbol.Name; + public static bool IsPublic(this ISymbol? symbol) => + symbol is { DeclaredAccessibility: Accessibility.Public }; + + private static bool IsRootNamespace(ISymbol symbol) + { + INamespaceSymbol s = null; + return ((s = symbol as INamespaceSymbol) != null) && s.IsGlobalNamespace; + } } \ No newline at end of file diff --git a/src/ProxyInterfaceSourceGenerator/Extensions/SyntaxNodeExtensions.cs b/src/ProxyInterfaceSourceGenerator/Extensions/SyntaxNodeExtensions.cs index 07749ce..50e3d57 100644 --- a/src/ProxyInterfaceSourceGenerator/Extensions/SyntaxNodeExtensions.cs +++ b/src/ProxyInterfaceSourceGenerator/Extensions/SyntaxNodeExtensions.cs @@ -70,7 +70,7 @@ internal static class SyntaxNodeExtensions // We have a namespace. Use that as the type nameSpace = namespaceParent.Name.ToString(); - // Keep moving "out" of the namespace declarations until we + // Keep moving "out" of the namespace declarations until we // run out of nested namespace declarations while (true) { diff --git a/src/ProxyInterfaceSourceGenerator/Extensions/TypeSymbolExtensions.cs b/src/ProxyInterfaceSourceGenerator/Extensions/TypeSymbolExtensions.cs index 807929c..efb2886 100644 --- a/src/ProxyInterfaceSourceGenerator/Extensions/TypeSymbolExtensions.cs +++ b/src/ProxyInterfaceSourceGenerator/Extensions/TypeSymbolExtensions.cs @@ -23,6 +23,11 @@ internal static class TypeSymbolExtensions public static bool IsString(this ITypeSymbol ts) => ts.ToString().ToLowerInvariant() == "string" || ts.ToString().ToLowerInvariant() == "string?"; + public static string ToFullyQualifiedDisplayString(this ITypeSymbol property) + { + return property.ToDisplayString(NullableFlowState.None, SymbolDisplayFormat.FullyQualifiedFormat); + } + internal static bool IsClass(this ITypeSymbol ts) => ts.IsReferenceType && ts.TypeKind == TypeKind.Class; } \ No newline at end of file diff --git a/src/ProxyInterfaceSourceGenerator/FileGenerators/BaseGenerator.cs b/src/ProxyInterfaceSourceGenerator/FileGenerators/BaseGenerator.cs index c7c8aa4..c399d93 100644 --- a/src/ProxyInterfaceSourceGenerator/FileGenerators/BaseGenerator.cs +++ b/src/ProxyInterfaceSourceGenerator/FileGenerators/BaseGenerator.cs @@ -11,8 +11,6 @@ namespace ProxyInterfaceSourceGenerator.FileGenerators; internal abstract class BaseGenerator { - private const string Star = "*"; - protected readonly Context Context; protected readonly bool SupportsNullable; @@ -34,25 +32,8 @@ internal abstract class BaseGenerator protected bool TryFindProxyDataByTypeName(string type, [NotNullWhen(true)] out ProxyData? proxyData) { - proxyData = Context.Candidates.Values.FirstOrDefault(x => x.FullRawTypeName == type); - if (proxyData != null) - { - return true; - } - - foreach (var ci in Context.Candidates.Values) - { - foreach (var u in ci.Usings) - { - if ($"{u}.{ci.FullRawTypeName}" == type) - { - proxyData = ci; - return true; - } - } - } - - return false; + proxyData = Context.Candidates.Values.FirstOrDefault(x => x.FullQualifiedTypeName == type); + return proxyData != null; } protected string GetWhereStatementFromMethod(IMethodSymbol method) @@ -128,7 +109,7 @@ internal abstract class BaseGenerator constraints.Add("new()"); } - if (constraints.Any()) + if (constraints.Count > 0) { constraint = new(typeParameterSymbol.Name, constraints); return true; @@ -138,11 +119,21 @@ internal abstract class BaseGenerator return false; } + internal readonly SymbolDisplayFormat NullableDisplayFormat = new SymbolDisplayFormat( + globalNamespaceStyle: SymbolDisplayGlobalNamespaceStyle.Included, + typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces, + genericsOptions: SymbolDisplayGenericsOptions.IncludeTypeParameters, + miscellaneousOptions: + SymbolDisplayMiscellaneousOptions.EscapeKeywordIdentifiers | + SymbolDisplayMiscellaneousOptions.UseSpecialTypes | + SymbolDisplayMiscellaneousOptions.IncludeNullableReferenceTypeModifier); + protected string GetReplacedTypeAsString(ITypeSymbol typeSymbol, out bool isReplaced) { isReplaced = false; - var typeSymbolAsString = typeSymbol.ToString(); + var typeSymbolAsString = typeSymbol.ToFullyQualifiedDisplayString(); + var nullableTypeSymbolAsString = typeSymbol.ToDisplayString(NullableFlowState.None, NullableDisplayFormat); if (TryFindProxyDataByTypeName(typeSymbolAsString, out var existing)) { @@ -152,7 +143,7 @@ internal abstract class BaseGenerator } isReplaced = true; - return FixType(existing.FullInterfaceName); + return FixType(existing.FullInterfaceName, typeSymbol.NullableAnnotation); } ITypeSymbol[] typeArguments; @@ -166,13 +157,13 @@ internal abstract class BaseGenerator } else { - return FixType(typeSymbolAsString); + return FixType(typeSymbolAsString, typeSymbol.NullableAnnotation); } - var propertyTypeAsStringToBeModified = typeSymbolAsString; + var propertyTypeAsStringToBeModified = nullableTypeSymbolAsString; foreach (var typeArgument in typeArguments) { - var typeArgumentAsString = typeArgument.ToString(); + var typeArgumentAsString = typeArgument.ToFullyQualifiedDisplayString(); if (TryFindProxyDataByTypeName(typeArgumentAsString, out var existingTypeArgument)) { @@ -187,15 +178,21 @@ internal abstract class BaseGenerator } } - return FixType(propertyTypeAsStringToBeModified); + return FixType(propertyTypeAsStringToBeModified, typeSymbol.NullableAnnotation); } protected bool TryGetNamedTypeSymbolByFullName(TypeKind kind, string name, IEnumerable usings, [NotNullWhen(true)] out ClassSymbol? classSymbol) { classSymbol = default; + const string globalPrefix = "global::"; + if (name.StartsWith(globalPrefix, StringComparison.Ordinal)) + { + name = name.Substring(globalPrefix.Length); + } // The GetTypeByMetadataName method returns null if no type matches the full name or if 2 or more types (in different assemblies) match the full name. var symbol = Context.GeneratorExecutionContext.Compilation.GetTypeByMetadataName(name); + if (symbol is not null && symbol.TypeKind == kind) { classSymbol = new ClassSymbol(symbol, symbol.GetBaseTypes(), symbol.AllInterfaces.ToList()); @@ -223,7 +220,14 @@ internal abstract class BaseGenerator string? type = null; if (includeType) { - type = parameterSymbol.GetTypeEnum() == TypeEnum.Complex ? GetParameterType(parameterSymbol, out _) : parameterSymbol.Type.ToString(); + if (parameterSymbol.GetTypeEnum() == TypeEnum.Complex) + { + type = GetParameterType(parameterSymbol, out _); + } + else + { + type = FixType(parameterSymbol.Type.ToFullyQualifiedDisplayString(), parameterSymbol.NullableAnnotation); + } } methodParameters.Add(MethodParameterBuilder.Build(parameterSymbol, type)); @@ -237,36 +241,22 @@ internal abstract class BaseGenerator var extendsProxyClasses = new List(); foreach (var baseType in targetClassSymbol.BaseTypes) { - var candidate = Context.Candidates.Values.FirstOrDefault(ci => ci.FullRawTypeName == baseType.ToString()); + var candidate = Context.Candidates.Values.FirstOrDefault(ci => ci.FullQualifiedTypeName == baseType.ToFullyQualifiedDisplayString()); if (candidate is not null) { extendsProxyClasses.Add(candidate); break; } - - // Try to find with usings - foreach (var @using in proxyData.Usings) - { - candidate = Context.Candidates.Values.FirstOrDefault(ci => $"{@using}.{ci.FullRawTypeName}" == baseType.ToString()); - if (candidate is not null) - { - // Update the FullRawTypeName - candidate.FullRawTypeName = $"{@using}.{candidate.FullRawTypeName}"; - - extendsProxyClasses.Add(candidate); - break; - } - } } return extendsProxyClasses; } - /// - /// Issue 54 - /// double[*,*] --> double[,] - /// - protected static string FixType(string type) + internal static string FixType(string type, NullableAnnotation nullableAnnotation) { - return type.Replace(Star, string.Empty); + if (nullableAnnotation == NullableAnnotation.Annotated && !type.EndsWith("?", StringComparison.Ordinal)) + { + return $"{type}?"; + } + return type; } } \ No newline at end of file diff --git a/src/ProxyInterfaceSourceGenerator/FileGenerators/PartialInterfacesGenerator.cs b/src/ProxyInterfaceSourceGenerator/FileGenerators/PartialInterfacesGenerator.cs index 20f0b00..9d8c2af 100644 --- a/src/ProxyInterfaceSourceGenerator/FileGenerators/PartialInterfacesGenerator.cs +++ b/src/ProxyInterfaceSourceGenerator/FileGenerators/PartialInterfacesGenerator.cs @@ -37,7 +37,7 @@ internal class PartialInterfacesGenerator : BaseGenerator, IFilesGenerator return false; } - if (!TryGetNamedTypeSymbolByFullName(TypeKind.Class, pd.FullTypeName, pd.Usings, out var targetClassSymbol)) + if (!TryGetNamedTypeSymbolByFullName(TypeKind.Class, pd.FullMetadataTypeName, pd.Usings, out var targetClassSymbol)) { return false; } @@ -45,7 +45,7 @@ internal class PartialInterfacesGenerator : BaseGenerator, IFilesGenerator var interfaceName = ResolveInterfaceNameWithOptionalTypeConstraints(targetClassSymbol.Symbol, pd.ShortInterfaceName); fileData = new FileData( - $"{sourceInterfaceSymbol.Symbol.GetFileName()}.g.cs", + $"{sourceInterfaceSymbol.Symbol.GetFullMetadataName()}.g.cs", CreatePartialInterfaceCode(pd.Namespace, targetClassSymbol, interfaceName, pd) ); @@ -60,10 +60,13 @@ internal class PartialInterfacesGenerator : BaseGenerator, IFilesGenerator { var extendsProxyClasses = GetExtendsProxyData(proxyData, classSymbol); ImplementedInterfaces = classSymbol.Symbol.ResolveImplementedInterfaces(proxyData.ProxyBaseClasses); - var implementedInterfacesNames = ImplementedInterfaces.Select(i => i.ToDisplayString(NullableFlowState.None, SymbolDisplayFormat.FullyQualifiedFormat)); + var implementedInterfacesNames = ImplementedInterfaces.Select(i => i.ToFullyQualifiedDisplayString()); var implements = implementedInterfacesNames.Any() ? $" : {string.Join(", ", implementedInterfacesNames)}" : string.Empty; var @new = extendsProxyClasses.Any() ? "new " : string.Empty; var (namespaceStart, namespaceEnd) = NamespaceBuilder.Build(ns); + var events = GenerateEvents(classSymbol, proxyData.ProxyBaseClasses); + var properties = GenerateProperties(classSymbol, proxyData.ProxyBaseClasses); + var methods = GenerateMethods(classSymbol, proxyData.ProxyBaseClasses).TrimEnd(); return $@"//---------------------------------------------------------------------------------------- // @@ -80,13 +83,11 @@ using System; {namespaceStart} public partial interface {interfaceName}{implements} {{ - {@new}{classSymbol.Symbol} _Instance {{ get; }} + {@new}{classSymbol} _Instance {{ get; }} -{GenerateProperties(classSymbol, proxyData.ProxyBaseClasses)} - -{GenerateMethods(classSymbol, proxyData.ProxyBaseClasses)} - -{GenerateEvents(classSymbol, proxyData.ProxyBaseClasses)} +{events + +properties + +methods} }} {namespaceEnd} {SupportsNullable.IIf("#nullable restore")}"; @@ -137,7 +138,6 @@ using System; str.AppendLine($" {getterSetter.Value.PropertyType} {propertyName} {getterSetter.Value.GetSet}"); str.AppendLine(); } - return str.ToString(); } diff --git a/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.AutoMapper.cs b/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.AutoMapper.cs index ce5d360..7251450 100644 --- a/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.AutoMapper.cs +++ b/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.AutoMapper.cs @@ -19,7 +19,7 @@ internal partial class ProxyClassesGenerator foreach (var replacedType in Context.ReplacedTypes) { TryFindProxyDataByTypeName(replacedType.Key, out var fullTypeName); - var classNameProxy = $"{fullTypeName!.Namespace}.{fullTypeName.ShortTypeName}Proxy"; + var classNameProxy = $"{fullTypeName!.NamespaceDot}{fullTypeName.ShortMetadataName}Proxy"; var instance = $"instance{(replacedType.Key + replacedType.Value).GetDeterministicHashCodeAsString()}"; var proxy = $"proxy{(replacedType.Value + replacedType.Key).GetDeterministicHashCodeAsString()}"; diff --git a/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.Mapster.cs b/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.Mapster.cs index 684a39a..154d66f 100644 --- a/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.Mapster.cs +++ b/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.Mapster.cs @@ -12,7 +12,7 @@ internal partial class ProxyClassesGenerator foreach (var replacedType in Context.ReplacedTypes) { TryFindProxyDataByTypeName(replacedType.Key, out var fullTypeName); - var classNameProxy = $"{fullTypeName!.Namespace}.{fullTypeName.ShortTypeName}Proxy"; + var classNameProxy = $"global::{fullTypeName!.NamespaceDot}{fullTypeName!.ShortMetadataName}Proxy"; var instance = $"instance{(replacedType.Key + replacedType.Value).GetDeterministicHashCodeAsString()}"; var proxy = $"proxy{(replacedType.Value + replacedType.Key).GetDeterministicHashCodeAsString()}"; diff --git a/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs b/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs index 53f66cb..cf8dbf9 100644 --- a/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs +++ b/src/ProxyInterfaceSourceGenerator/FileGenerators/ProxyClassesGenerator.cs @@ -32,19 +32,19 @@ internal partial class ProxyClassesGenerator : BaseGenerator, IFilesGenerator { fileData = default; - if (!TryGetNamedTypeSymbolByFullName(TypeKind.Class, pd.FullTypeName, pd.Usings, out var targetClassSymbol)) + if (!TryGetNamedTypeSymbolByFullName(TypeKind.Class, pd.FullMetadataTypeName, pd.Usings, out var targetClassSymbol)) { return false; } - var interfaceName = ResolveInterfaceNameWithOptionalTypeConstraints(targetClassSymbol.Symbol, pd.ShortInterfaceName); + var interfaceName = ResolveInterfaceNameWithOptionalTypeConstraints(targetClassSymbol.Symbol, pd.FullInterfaceName); var className = targetClassSymbol.Symbol.ResolveProxyClassName(); var constructorName = $"{targetClassSymbol.Symbol.Name}Proxy"; var extendsProxyClasses = GetExtendsProxyData(pd, targetClassSymbol); fileData = new FileData( - $"{targetClassSymbol.Symbol.GetFileName()}Proxy.g.cs", + $"{targetClassSymbol.Symbol.GetFullMetadataName()}Proxy.g.cs", CreateProxyClassCode(pd, targetClassSymbol, extendsProxyClasses, interfaceName, className, constructorName) ); @@ -68,11 +68,11 @@ internal partial class ProxyClassesGenerator : BaseGenerator, IFilesGenerator if (firstExtends is not null) { - extends = $"{firstExtends.Namespace}.{firstExtends.ShortTypeName}Proxy, "; + extends = $"global::{firstExtends.NamespaceDot}{firstExtends.ShortMetadataName}Proxy, "; @base = " : base(instance)"; @new = "new "; - instanceBaseDefinition = $"public {firstExtends.FullRawTypeName} _Instance{firstExtends.FullRawTypeName.GetLastPart()} {{ get; }}"; - instanceBaseSetter = $"_Instance{firstExtends.FullRawTypeName.GetLastPart()} = instance;"; + instanceBaseDefinition = $"public {firstExtends.FullQualifiedTypeName} _Instance{firstExtends.FullQualifiedTypeName.GetLastPart()} {{ get; }}"; + instanceBaseSetter = $"_Instance{firstExtends.FullQualifiedTypeName.GetLastPart()} = instance;"; } var @abstract = string.Empty; // targetClassSymbol.Symbol.IsAbstract ? "abstract " : string.Empty; @@ -106,17 +106,12 @@ using System; {namespaceStart} {accessibility} {@abstract}partial class {className} : {extends}{interfaceName} {{ - public {@new}{targetClassSymbol.Symbol} _Instance {{ get; }} + public {@new}{targetClassSymbol} _Instance {{ get; }} {instanceBaseDefinition} - -{properties} - -{methods} - -{events} - -{operators} - +{events + +properties + +methods + +operators} public {constructorName}({targetClassSymbol} instance){@base} {{ _Instance = instance; @@ -244,7 +239,7 @@ using System; foreach (var ps in method.Parameters.Where(p => !p.IsRef())) { - var type = FixType(ps.Type.ToString()); + var type = FixType(ps.Type.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat), ps.Type.NullableAnnotation); string normalOrMap = $" = {ps.GetSanitizedName()}"; if (ps.RefKind == RefKind.Out) { @@ -265,7 +260,7 @@ using System; var methodName = method.GetMethodNameWithOptionalTypeParameters(); var alternateReturnVariableName = $"result_{methodName.GetDeterministicHashCodeAsString()}"; - string instance = !method.IsStatic ? "_Instance" : $"{targetClassSymbol.Symbol}"; + string instance = method.IsStatic ? targetClassSymbol.Symbol.ToFullyQualifiedDisplayString() : "_Instance"; if (returnTypeAsString == "void") { diff --git a/src/ProxyInterfaceSourceGenerator/Models/ClassSymbol.cs b/src/ProxyInterfaceSourceGenerator/Models/ClassSymbol.cs index 4c422ae..74fd141 100644 --- a/src/ProxyInterfaceSourceGenerator/Models/ClassSymbol.cs +++ b/src/ProxyInterfaceSourceGenerator/Models/ClassSymbol.cs @@ -6,6 +6,6 @@ internal record ClassSymbol(INamedTypeSymbol Symbol, List Base { public override string ToString() { - return Symbol.ToString(); + return Symbol.ToDisplayString(NullableFlowState.None, SymbolDisplayFormat.FullyQualifiedFormat); } } \ No newline at end of file diff --git a/src/ProxyInterfaceSourceGenerator/Models/ProxyData.cs b/src/ProxyInterfaceSourceGenerator/Models/ProxyData.cs index 60d5cdc..b31976e 100644 --- a/src/ProxyInterfaceSourceGenerator/Models/ProxyData.cs +++ b/src/ProxyInterfaceSourceGenerator/Models/ProxyData.cs @@ -4,21 +4,46 @@ namespace ProxyInterfaceSourceGenerator.Models; internal class ProxyData { - public string Namespace { get; init; } + public ProxyData(string @namespace, + string namespaceDot, + string shortInterfaceName, + string fullInterfaceName, + string fullQualifiedTypeName, + string shortMetadataTypeName, + string fullMetadataTypeName, + List usings, + bool proxyBaseClasses, + ProxyClassAccessibility accessibility) + { + Namespace = @namespace ?? throw new ArgumentNullException(nameof(@namespace)); + NamespaceDot = namespaceDot ?? throw new ArgumentNullException(nameof(namespaceDot)); + ShortInterfaceName = shortInterfaceName ?? throw new ArgumentNullException(nameof(shortInterfaceName)); + FullInterfaceName = fullInterfaceName ?? throw new ArgumentNullException(nameof(fullInterfaceName)); + FullQualifiedTypeName = fullQualifiedTypeName ?? throw new ArgumentNullException(nameof(fullQualifiedTypeName)); + ShortMetadataName = shortMetadataTypeName ?? throw new ArgumentNullException(nameof(shortMetadataTypeName)); + FullMetadataTypeName = fullMetadataTypeName ?? throw new ArgumentNullException(nameof(fullMetadataTypeName)); + Usings = usings ?? throw new ArgumentNullException(nameof(usings)); + ProxyBaseClasses = proxyBaseClasses; + Accessibility = accessibility; + } - public string ShortInterfaceName { get; init; } + public string Namespace { get; } - public string FullInterfaceName { get; init; } + public string NamespaceDot { get; } - public string FullRawTypeName { get; set; } + public string ShortInterfaceName { get; } - public string ShortTypeName { get; init; } + public string FullInterfaceName { get; } - public string FullTypeName { get; init; } + public string FullQualifiedTypeName { get; } - public List Usings { get; init; } + public string ShortMetadataName { get; } - public bool ProxyBaseClasses { get; init; } + public string FullMetadataTypeName { get; } - public ProxyClassAccessibility Accessibility { get; init; } + public List Usings { get; } + + public bool ProxyBaseClasses { get; } + + public ProxyClassAccessibility Accessibility { get; } } \ No newline at end of file diff --git a/src/ProxyInterfaceSourceGenerator/Properties/launchSettings.json b/src/ProxyInterfaceSourceGenerator/Properties/launchSettings.json new file mode 100644 index 0000000..d072c32 --- /dev/null +++ b/src/ProxyInterfaceSourceGenerator/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "ProxyInterfaceConsumer": { + "commandName": "DebugRoslynComponent", + "targetProject": "..\\..\\src-examples\\ProxyInterfaceConsumer\\ProxyInterfaceConsumer.csproj" + } + } +} \ No newline at end of file diff --git a/src/ProxyInterfaceSourceGenerator/ProxyInterfaceCodeGenerator.cs b/src/ProxyInterfaceSourceGenerator/ProxyInterfaceCodeGenerator.cs index 3fed465..40febd6 100644 --- a/src/ProxyInterfaceSourceGenerator/ProxyInterfaceCodeGenerator.cs +++ b/src/ProxyInterfaceSourceGenerator/ProxyInterfaceCodeGenerator.cs @@ -16,7 +16,7 @@ internal #endif class ProxyInterfaceCodeGenerator : ISourceGenerator { - private readonly ExtraFilesGenerator _proxyAttributeGenerator = new (); + private readonly ExtraFilesGenerator _proxyAttributeGenerator = new(); public void Initialize(GeneratorInitializationContext context) { @@ -26,7 +26,6 @@ class ProxyInterfaceCodeGenerator : ISourceGenerator System.Diagnostics.Debugger.Launch(); } #endif - context.RegisterForSyntaxNotifications(() => new ProxySyntaxReceiver()); } @@ -39,7 +38,7 @@ class ProxyInterfaceCodeGenerator : ISourceGenerator throw new NotSupportedException("Only C# is supported."); } - if (context.SyntaxReceiver is not ProxySyntaxReceiver receiver) + if (context.SyntaxContextReceiver is not ProxySyntaxReceiver receiver) { throw new NotSupportedException($"Only {nameof(ProxySyntaxReceiver)} is supported."); } diff --git a/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj b/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj index e8d010b..440ea97 100644 --- a/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj +++ b/src/ProxyInterfaceSourceGenerator/ProxyInterfaceSourceGenerator.csproj @@ -25,6 +25,8 @@ true enable Debug;Release;DebugAttach + true + true @@ -41,11 +43,11 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/ProxyInterfaceSourceGenerator/SyntaxReceiver/AttributeArgumentListParser.cs b/src/ProxyInterfaceSourceGenerator/SyntaxReceiver/AttributeArgumentListParser.cs index 95772f9..a8fafcf 100644 --- a/src/ProxyInterfaceSourceGenerator/SyntaxReceiver/AttributeArgumentListParser.cs +++ b/src/ProxyInterfaceSourceGenerator/SyntaxReceiver/AttributeArgumentListParser.cs @@ -1,13 +1,16 @@ -using System.Diagnostics.CodeAnalysis; +using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; +using ProxyInterfaceSourceGenerator.Extensions; using ProxyInterfaceSourceGenerator.Types; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; namespace ProxyInterfaceSourceGenerator.SyntaxReceiver; internal static class AttributeArgumentListParser { - public static ProxyInterfaceGeneratorAttributeArguments ParseAttributeArguments(AttributeArgumentListSyntax? argumentList) + public static ProxyInterfaceGeneratorAttributeArguments ParseAttributeArguments(AttributeArgumentListSyntax? argumentList, SemanticModel semanticModel) { if (argumentList is null || argumentList.Arguments.Count is < 1 or > 3) { @@ -15,9 +18,9 @@ internal static class AttributeArgumentListParser } ProxyInterfaceGeneratorAttributeArguments result; - if (TryParseAsType(argumentList.Arguments[0].Expression, out var rawTypeValue)) + if (TryParseAsType(argumentList.Arguments[0].Expression, semanticModel, out var fullyQualifiedDisplayString, out var metadataName)) { - result = new ProxyInterfaceGeneratorAttributeArguments(rawTypeValue); + result = new ProxyInterfaceGeneratorAttributeArguments(fullyQualifiedDisplayString, metadataName); } else { @@ -54,13 +57,18 @@ internal static class AttributeArgumentListParser return false; } - private static bool TryParseAsType(ExpressionSyntax expressionSyntax, [NotNullWhen(true)] out string? rawTypeName) + private static bool TryParseAsType(ExpressionSyntax expressionSyntax, SemanticModel semanticModel, [NotNullWhen(true)] out string? fullyQualifiedDisplayString, [NotNullWhen(true)] out string? metadataName) { - rawTypeName = null; + fullyQualifiedDisplayString = null; + metadataName = null; if (expressionSyntax is TypeOfExpressionSyntax typeOfExpressionSyntax) { - rawTypeName = typeOfExpressionSyntax.Type.ToString(); + var typeInfo = semanticModel.GetTypeInfo(typeOfExpressionSyntax.Type); + var typeSymbol = typeInfo.Type!; + metadataName = typeSymbol.GetFullMetadataName(); + fullyQualifiedDisplayString = typeSymbol.ToFullyQualifiedDisplayString(); + return true; } diff --git a/src/ProxyInterfaceSourceGenerator/SyntaxReceiver/ProxySyntaxReceiver.cs b/src/ProxyInterfaceSourceGenerator/SyntaxReceiver/ProxySyntaxReceiver.cs index 0f9a131..facc5ed 100644 --- a/src/ProxyInterfaceSourceGenerator/SyntaxReceiver/ProxySyntaxReceiver.cs +++ b/src/ProxyInterfaceSourceGenerator/SyntaxReceiver/ProxySyntaxReceiver.cs @@ -6,26 +6,33 @@ using ProxyInterfaceSourceGenerator.Models; namespace ProxyInterfaceSourceGenerator.SyntaxReceiver; -internal class ProxySyntaxReceiver : ISyntaxReceiver +internal class ProxySyntaxReceiver : ISyntaxContextReceiver { - private static readonly string[] Modifiers = { "public", "partial" }; + private const string GlobalPrefix = "global::"; private static readonly string[] GenerateProxyAttributes = { "ProxyInterfaceGenerator.Proxy", "Proxy" }; - + private static readonly string[] Modifiers = { "public", "partial" }; public IDictionary CandidateInterfaces { get; } = new Dictionary(); - public void OnVisitSyntaxNode(SyntaxNode syntaxNode) + public void OnVisitSyntaxNode(GeneratorSyntaxContext context) { - if (syntaxNode is InterfaceDeclarationSyntax interfaceDeclarationSyntax && TryGet(interfaceDeclarationSyntax, out var data)) + var syntaxNode = context.Node; + var semanticModel = context.SemanticModel; + + if (syntaxNode is InterfaceDeclarationSyntax interfaceDeclarationSyntax && TryGet(interfaceDeclarationSyntax, out var data, semanticModel!)) { CandidateInterfaces.Add(interfaceDeclarationSyntax, data); } } - private static bool TryGet(InterfaceDeclarationSyntax interfaceDeclarationSyntax, [NotNullWhen(true)] out ProxyData? data) + private static string CreateFullInterfaceName(string ns, BaseTypeDeclarationSyntax classDeclarationSyntax) + { + return !string.IsNullOrEmpty(ns) ? $"{ns}.{classDeclarationSyntax.Identifier}" : classDeclarationSyntax.Identifier.ToString(); + } + private static bool TryGet(InterfaceDeclarationSyntax interfaceDeclarationSyntax, [NotNullWhen(true)] out ProxyData? data, SemanticModel semanticModel) { data = null; - if (interfaceDeclarationSyntax.Modifiers.Select(m => m.ToString()).Except(Modifiers).Count() != 0) + if (interfaceDeclarationSyntax.Modifiers.Select(m => m.ToString()).Except(Modifiers).Any()) { // InterfaceDeclarationSyntax should be "public" and "partial" return false; @@ -38,7 +45,6 @@ internal class ProxySyntaxReceiver : ISyntaxReceiver return false; } - var usings = new List(); string ns = interfaceDeclarationSyntax.GetNamespace(); @@ -55,35 +61,25 @@ internal class ProxySyntaxReceiver : ISyntaxReceiver } } - var fluentBuilderAttributeArguments = AttributeArgumentListParser.ParseAttributeArguments(attributeList.Attributes.FirstOrDefault()?.ArgumentList); + var fluentBuilderAttributeArguments = AttributeArgumentListParser.ParseAttributeArguments(attributeList.Attributes.FirstOrDefault()?.ArgumentList, semanticModel); - var rawTypeNameAsString = fluentBuilderAttributeArguments.RawTypeName; - - data = new ProxyData - { - Namespace = ns, - ShortInterfaceName = interfaceDeclarationSyntax.Identifier.ToString(), - FullInterfaceName = CreateFullInterfaceName(ns, interfaceDeclarationSyntax), // $"{ns}.{interfaceDeclarationSyntax.Identifier}", - FullRawTypeName = rawTypeNameAsString, - ShortTypeName = ConvertTypeName(rawTypeNameAsString).Split('.').Last(), - FullTypeName = ConvertTypeName(rawTypeNameAsString), - Usings = usings, - ProxyBaseClasses = fluentBuilderAttributeArguments.ProxyBaseClasses, - Accessibility = fluentBuilderAttributeArguments.Accessibility - }; + var metadataName = fluentBuilderAttributeArguments.MetadataName; + var globalNamespace = string.IsNullOrEmpty(ns) ? string.Empty : $"{GlobalPrefix}{ns}"; + var namespaceDot = string.IsNullOrEmpty(ns) ? string.Empty : $"{ns}."; + + data = new ProxyData( + @namespace: ns, + namespaceDot: namespaceDot, + shortInterfaceName: interfaceDeclarationSyntax.Identifier.ToString(), + fullInterfaceName: CreateFullInterfaceName(globalNamespace, interfaceDeclarationSyntax), // $"{ns}.{interfaceDeclarationSyntax.Identifier}", + fullQualifiedTypeName: fluentBuilderAttributeArguments.FullyQualifiedDisplayString, + fullMetadataTypeName: metadataName, + shortMetadataTypeName: metadataName.Split('.').Last(), + usings: usings, + proxyBaseClasses: fluentBuilderAttributeArguments.ProxyBaseClasses, + accessibility: fluentBuilderAttributeArguments.Accessibility + ); return true; } - - private static string ConvertTypeName(string typeName) - { - return !(typeName.Contains('<') && typeName.Contains('>')) ? - typeName : - $"{typeName.Replace("<", string.Empty).Replace(">", string.Empty).Replace(",", string.Empty).Trim()}`{typeName.Count(c => c == ',') + 1}"; - } - - private static string CreateFullInterfaceName(string ns, BaseTypeDeclarationSyntax classDeclarationSyntax) - { - return !string.IsNullOrEmpty(ns) ? $"{ns}.{classDeclarationSyntax.Identifier}" : classDeclarationSyntax.Identifier.ToString(); - } } \ No newline at end of file diff --git a/src/ProxyInterfaceSourceGenerator/Types/FluentBuilderAttributeArguments.cs b/src/ProxyInterfaceSourceGenerator/Types/FluentBuilderAttributeArguments.cs index 0621f0c..0e4ae9b 100644 --- a/src/ProxyInterfaceSourceGenerator/Types/FluentBuilderAttributeArguments.cs +++ b/src/ProxyInterfaceSourceGenerator/Types/FluentBuilderAttributeArguments.cs @@ -1,6 +1,6 @@ namespace ProxyInterfaceSourceGenerator.Types; -internal record ProxyInterfaceGeneratorAttributeArguments(string RawTypeName) +internal record ProxyInterfaceGeneratorAttributeArguments(string FullyQualifiedDisplayString, string MetadataName) { public bool ProxyBaseClasses { get; set; } diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/Akka.Actor.LocalActorRefProviderProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/Akka.Actor.LocalActorRefProviderProxy.g.cs index 09bc169..e78a399 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/Akka.Actor.LocalActorRefProviderProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/Akka.Actor.LocalActorRefProviderProxy.g.cs @@ -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 CreateFutureRef(System.Threading.Tasks.TaskCompletionSource tcs) + public global::Akka.Actor.FutureActorRef CreateFutureRef(global::System.Threading.Tasks.TaskCompletionSource tcs) { - System.Threading.Tasks.TaskCompletionSource tcs_ = tcs; + global::System.Threading.Tasks.TaskCompletionSource tcs_ = tcs; var result_1137255884 = _Instance.CreateFutureRef(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; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/ProxyInterfaceSourceGeneratorTests.Source.AkkaActor.ILocalActorRefProvider.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/ProxyInterfaceSourceGeneratorTests.Source.AkkaActor.ILocalActorRefProvider.g.cs index 7e37a8a..d9d1715 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/ProxyInterfaceSourceGeneratorTests.Source.AkkaActor.ILocalActorRefProvider.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/AkkaGenerated/ProxyInterfaceSourceGeneratorTests.Source.AkkaActor.ILocalActorRefProvider.g.cs @@ -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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/INoNamespace.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/INoNamespace.g.cs index 8452d59..fc6a528 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/INoNamespace.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/INoNamespace.g.cs @@ -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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientContextProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientContextProxy.g.cs index 4a33351..72e0d28 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientContextProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientContextProxy.g.cs @@ -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(_Instance.Web); } - public ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb Web { get => Mapster.TypeAdapter.Adapt(_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.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_572349648 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_572349648)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy214349770 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy214349770)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_205438316 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_205438316)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_437526006 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy_437526006)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance592284880 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance592284880)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_300636294 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_300636294)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_247129254 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance_247129254)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_117192422 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_117192422)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_1283184912 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy(instance_1283184912)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1267236400 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy) proxy1267236400)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_1483513702 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy(instance_1483513702)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy343311664 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy) proxy343311664)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_1865313808 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.WebProxy(instance_1865313808)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy2115366516 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.WebProxy) proxy2115366516)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance290679610 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.WebProxy(instance290679610)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_1534869484 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.WebProxy) proxy_1534869484)._Instance); } diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientObjectProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientObjectProxy.g.cs index de83557..e63fdae 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientObjectProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientObjectProxy.g.cs @@ -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(_Instance.Context); } + public global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext Context { get => Mapster.TypeAdapter.Adapt(_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(_Instance.TypedObject); } - - + public global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject TypedObject { get => Mapster.TypeAdapter.Adapt(_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.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_572349648 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_572349648)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy214349770 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy214349770)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_205438316 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_205438316)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_437526006 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy_437526006)._Instance); } diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientRuntimeContextProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientRuntimeContextProxy.g.cs index 093a8f4..cc60751 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientRuntimeContextProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.ClientRuntimeContextProxy.g.cs @@ -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 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 StaticObjects { get => _Instance.StaticObjects; } + public global::System.Collections.Generic.Dictionary 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(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject obj) where T : Microsoft.SharePoint.Client.ClientObject + public T CastTo(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject obj) where T : Microsoft.SharePoint.Client.ClientObject { - Microsoft.SharePoint.Client.ClientObject obj_ = Mapster.TypeAdapter.Adapt(obj); + global::Microsoft.SharePoint.Client.ClientObject obj_ = Mapster.TypeAdapter.Adapt(obj); var result_366781530 = _Instance.CastTo(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 clientObject, params System.Linq.Expressions.Expression>[] retrievals) where T : Microsoft.SharePoint.Client.ClientObject + public void Load(T clientObject, params global::System.Linq.Expressions.Expression>[] retrievals) where T : Microsoft.SharePoint.Client.ClientObject { T clientObject_ = clientObject; - System.Linq.Expressions.Expression>[] retrievals_ = retrievals; + global::System.Linq.Expressions.Expression>[] retrievals_ = retrievals; _Instance.Load(clientObject_, retrievals_); } - public System.Collections.Generic.IEnumerable LoadQuery(Microsoft.SharePoint.Client.ClientObjectCollection clientObjects) where T : Microsoft.SharePoint.Client.ClientObject + public global::System.Collections.Generic.IEnumerable LoadQuery(global::Microsoft.SharePoint.Client.ClientObjectCollection clientObjects) where T : Microsoft.SharePoint.Client.ClientObject { - Microsoft.SharePoint.Client.ClientObjectCollection clientObjects_ = clientObjects; + global::Microsoft.SharePoint.Client.ClientObjectCollection clientObjects_ = clientObjects; var result_2035927496 = _Instance.LoadQuery(clientObjects_); return result_2035927496; } - public System.Collections.Generic.IEnumerable LoadQuery(System.Linq.IQueryable clientObjects) where T : Microsoft.SharePoint.Client.ClientObject + public global::System.Collections.Generic.IEnumerable LoadQuery(global::System.Linq.IQueryable clientObjects) where T : Microsoft.SharePoint.Client.ClientObject { - System.Linq.IQueryable clientObjects_ = clientObjects; + global::System.Linq.IQueryable clientObjects_ = clientObjects; var result_2035927496 = _Instance.LoadQuery(clientObjects_); return result_2035927496; } @@ -138,29 +137,22 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } - - public event System.EventHandler 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.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_572349648 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_572349648)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy214349770 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy214349770)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_205438316 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_205438316)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_437526006 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy_437526006)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance592284880 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance592284880)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_300636294 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_300636294)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_247129254 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance_247129254)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_117192422 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_117192422)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_1283184912 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy(instance_1283184912)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1267236400 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy) proxy1267236400)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_1483513702 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy(instance_1483513702)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy343311664 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy) proxy343311664)._Instance); } diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.SecurableObjectProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.SecurableObjectProxy.g.cs index 218fc35..d509130 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.SecurableObjectProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.SecurableObjectProxy.g.cs @@ -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(_Instance.FirstUniqueAncestorSecurableObject); } + public global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject FirstUniqueAncestorSecurableObject { get => Mapster.TypeAdapter.Adapt(_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.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_572349648 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_572349648)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy214349770 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy214349770)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_205438316 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_205438316)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_437526006 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy_437526006)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance592284880 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance592284880)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_300636294 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_300636294)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_247129254 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance_247129254)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_117192422 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_117192422)._Instance); } diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs index ac5110a..f4e8e49 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/Microsoft.SharePoint.Client.WebProxy.g.cs @@ -12,11 +12,10 @@ using System; namespace ProxyInterfaceSourceGeneratorTests.Source.PnP { - public partial class WebProxy : ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy, IWeb + public partial class WebProxy : global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy, global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb { - public new Microsoft.SharePoint.Client.Web _Instance { get; } - public Microsoft.SharePoint.Client.SecurableObject _InstanceSecurableObject { get; } - + public new global::Microsoft.SharePoint.Client.Web _Instance { get; } + public global::Microsoft.SharePoint.Client.SecurableObject _InstanceSecurableObject { get; } [Microsoft.SharePoint.Client.RemoteAttribute] public string AccessRequestListUrl { get => _Instance.AccessRequestListUrl; } @@ -27,7 +26,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public string Acronym { get => _Instance.Acronym; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.AlertCollection Alerts { get => _Instance.Alerts; } + public global::Microsoft.SharePoint.Client.AlertCollection Alerts { get => _Instance.Alerts; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool AllowAutomaticASPXPageIndexing { get => _Instance.AllowAutomaticASPXPageIndexing; set => _Instance.AllowAutomaticASPXPageIndexing = value; } @@ -54,37 +53,37 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public bool AllowSavePublishDeclarativeWorkflowForCurrentUser { get => _Instance.AllowSavePublishDeclarativeWorkflowForCurrentUser; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.PropertyValues AllProperties { get => _Instance.AllProperties; } + public global::Microsoft.SharePoint.Client.PropertyValues AllProperties { get => _Instance.AllProperties; } [Microsoft.SharePoint.Client.RemoteAttribute] public string AlternateCssUrl { get => _Instance.AlternateCssUrl; set => _Instance.AlternateCssUrl = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.Guid AppInstanceId { get => _Instance.AppInstanceId; } + public global::System.Guid AppInstanceId { get => _Instance.AppInstanceId; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.AppTileCollection AppTiles { get => _Instance.AppTiles; } + public global::Microsoft.SharePoint.Client.AppTileCollection AppTiles { get => _Instance.AppTiles; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.Group AssociatedMemberGroup { get => _Instance.AssociatedMemberGroup; set => _Instance.AssociatedMemberGroup = value; } + public global::Microsoft.SharePoint.Client.Group AssociatedMemberGroup { get => _Instance.AssociatedMemberGroup; set => _Instance.AssociatedMemberGroup = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.Group AssociatedOwnerGroup { get => _Instance.AssociatedOwnerGroup; set => _Instance.AssociatedOwnerGroup = value; } + public global::Microsoft.SharePoint.Client.Group AssociatedOwnerGroup { get => _Instance.AssociatedOwnerGroup; set => _Instance.AssociatedOwnerGroup = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.Group AssociatedVisitorGroup { get => _Instance.AssociatedVisitorGroup; set => _Instance.AssociatedVisitorGroup = value; } + public global::Microsoft.SharePoint.Client.Group AssociatedVisitorGroup { get => _Instance.AssociatedVisitorGroup; set => _Instance.AssociatedVisitorGroup = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.User Author { get => _Instance.Author; } + public global::Microsoft.SharePoint.Client.User Author { get => _Instance.Author; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ContentTypeCollection AvailableContentTypes { get => _Instance.AvailableContentTypes; } + public global::Microsoft.SharePoint.Client.ContentTypeCollection AvailableContentTypes { get => _Instance.AvailableContentTypes; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.FieldCollection AvailableFields { get => _Instance.AvailableFields; } + public global::Microsoft.SharePoint.Client.FieldCollection AvailableFields { get => _Instance.AvailableFields; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ModernizeHomepageResult CanModernizeHomepage { get => _Instance.CanModernizeHomepage; } + public global::Microsoft.SharePoint.Client.ModernizeHomepageResult CanModernizeHomepage { get => _Instance.CanModernizeHomepage; } [Microsoft.SharePoint.Client.RemoteAttribute] public string ClassicWelcomePage { get => _Instance.ClassicWelcomePage; set => _Instance.ClassicWelcomePage = value; } @@ -99,16 +98,16 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public bool ContainsConfidentialInfo { get => _Instance.ContainsConfidentialInfo; set => _Instance.ContainsConfidentialInfo = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ContentTypeCollection ContentTypes { get => _Instance.ContentTypes; } + public global::Microsoft.SharePoint.Client.ContentTypeCollection ContentTypes { get => _Instance.ContentTypes; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.DateTime Created { get => _Instance.Created; } + public global::System.DateTime Created { get => _Instance.Created; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ChangeToken CurrentChangeToken { get => _Instance.CurrentChangeToken; } + public global::Microsoft.SharePoint.Client.ChangeToken CurrentChangeToken { get => _Instance.CurrentChangeToken; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.User CurrentUser { get => _Instance.CurrentUser; } + public global::Microsoft.SharePoint.Client.User CurrentUser { get => _Instance.CurrentUser; } [Microsoft.SharePoint.Client.RemoteAttribute] public string CustomMasterUrl { get => _Instance.CustomMasterUrl; set => _Instance.CustomMasterUrl = value; } @@ -117,7 +116,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public bool CustomSiteActionsDisabled { get => _Instance.CustomSiteActionsDisabled; set => _Instance.CustomSiteActionsDisabled = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.SPDataLeakagePreventionStatusInfo DataLeakagePreventionStatusInfo { get => _Instance.DataLeakagePreventionStatusInfo; } + public global::Microsoft.SharePoint.Client.SPDataLeakagePreventionStatusInfo DataLeakagePreventionStatusInfo { get => _Instance.DataLeakagePreventionStatusInfo; } [Microsoft.SharePoint.Client.RemoteAttribute] public string Description { get => _Instance.Description; set => _Instance.Description = value; } @@ -126,16 +125,16 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public string DescriptionForExistingLanguage { get => _Instance.DescriptionForExistingLanguage; set => _Instance.DescriptionForExistingLanguage = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.UserResource DescriptionResource { get => _Instance.DescriptionResource; } + public global::Microsoft.SharePoint.Client.UserResource DescriptionResource { get => _Instance.DescriptionResource; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.Collections.Generic.IEnumerable DescriptionTranslations { get => _Instance.DescriptionTranslations; set => _Instance.DescriptionTranslations = value; } + public global::System.Collections.Generic.IEnumerable DescriptionTranslations { get => _Instance.DescriptionTranslations; set => _Instance.DescriptionTranslations = value; } [Microsoft.SharePoint.Client.RemoteAttribute] public string DesignerDownloadUrlForCurrentUser { get => _Instance.DesignerDownloadUrlForCurrentUser; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.Guid DesignPackageId { get => _Instance.DesignPackageId; set => _Instance.DesignPackageId = value; } + public global::System.Guid DesignPackageId { get => _Instance.DesignPackageId; set => _Instance.DesignPackageId = value; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool DisableAppViews { get => _Instance.DisableAppViews; set => _Instance.DisableAppViews = value; } @@ -150,43 +149,43 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public bool DocumentLibraryCalloutOfficeWebAppPreviewersDisabled { get => _Instance.DocumentLibraryCalloutOfficeWebAppPreviewersDisabled; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.BasePermissions EffectiveBasePermissions { get => _Instance.EffectiveBasePermissions; } + public global::Microsoft.SharePoint.Client.BasePermissions EffectiveBasePermissions { get => _Instance.EffectiveBasePermissions; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool EnableMinimalDownload { get => _Instance.EnableMinimalDownload; set => _Instance.EnableMinimalDownload = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.EventReceiverDefinitionCollection EventReceivers { get => _Instance.EventReceivers; } + public global::Microsoft.SharePoint.Client.EventReceiverDefinitionCollection EventReceivers { get => _Instance.EventReceivers; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool ExcludeFromOfflineClient { get => _Instance.ExcludeFromOfflineClient; set => _Instance.ExcludeFromOfflineClient = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.FeatureCollection Features { get => _Instance.Features; } + public global::Microsoft.SharePoint.Client.FeatureCollection Features { get => _Instance.Features; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.FieldCollection Fields { get => _Instance.Fields; } + public global::Microsoft.SharePoint.Client.FieldCollection Fields { get => _Instance.Fields; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.FolderCollection Folders { get => _Instance.Folders; } + public global::Microsoft.SharePoint.Client.FolderCollection Folders { get => _Instance.Folders; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.FooterVariantThemeType FooterEmphasis { get => _Instance.FooterEmphasis; set => _Instance.FooterEmphasis = value; } + public global::Microsoft.SharePoint.Client.FooterVariantThemeType FooterEmphasis { get => _Instance.FooterEmphasis; set => _Instance.FooterEmphasis = value; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool FooterEnabled { get => _Instance.FooterEnabled; set => _Instance.FooterEnabled = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.FooterLayoutType FooterLayout { get => _Instance.FooterLayout; set => _Instance.FooterLayout = value; } + public global::Microsoft.SharePoint.Client.FooterLayoutType FooterLayout { get => _Instance.FooterLayout; set => _Instance.FooterLayout = value; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool HasWebTemplateExtension { get => _Instance.HasWebTemplateExtension; set => _Instance.HasWebTemplateExtension = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.SPVariantThemeType HeaderEmphasis { get => _Instance.HeaderEmphasis; set => _Instance.HeaderEmphasis = value; } + public global::Microsoft.SharePoint.Client.SPVariantThemeType HeaderEmphasis { get => _Instance.HeaderEmphasis; set => _Instance.HeaderEmphasis = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.HeaderLayoutType HeaderLayout { get => _Instance.HeaderLayout; set => _Instance.HeaderLayout = value; } + public global::Microsoft.SharePoint.Client.HeaderLayoutType HeaderLayout { get => _Instance.HeaderLayout; set => _Instance.HeaderLayout = value; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool HideTitleInHeader { get => _Instance.HideTitleInHeader; set => _Instance.HideTitleInHeader = value; } @@ -195,10 +194,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public bool HorizontalQuickLaunch { get => _Instance.HorizontalQuickLaunch; set => _Instance.HorizontalQuickLaunch = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.ClientSideComponent.HostedAppsManager HostedApps { get => _Instance.HostedApps; } + public global::Microsoft.SharePoint.ClientSideComponent.HostedAppsManager HostedApps { get => _Instance.HostedApps; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.Guid Id { get => _Instance.Id; } + public global::System.Guid Id { get => _Instance.Id; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool IsEduClass { get => _Instance.IsEduClass; } @@ -225,19 +224,19 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public uint Language { get => _Instance.Language; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.DateTime LastItemModifiedDate { get => _Instance.LastItemModifiedDate; } + public global::System.DateTime LastItemModifiedDate { get => _Instance.LastItemModifiedDate; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.DateTime LastItemUserModifiedDate { get => _Instance.LastItemUserModifiedDate; } + public global::System.DateTime LastItemUserModifiedDate { get => _Instance.LastItemUserModifiedDate; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ListCollection Lists { get => _Instance.Lists; } + public global::Microsoft.SharePoint.Client.ListCollection Lists { get => _Instance.Lists; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ListTemplateCollection ListTemplates { get => _Instance.ListTemplates; } + public global::Microsoft.SharePoint.Client.ListTemplateCollection ListTemplates { get => _Instance.ListTemplates; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.LogoAlignment LogoAlignment { get => _Instance.LogoAlignment; set => _Instance.LogoAlignment = value; } + public global::Microsoft.SharePoint.Client.LogoAlignment LogoAlignment { get => _Instance.LogoAlignment; set => _Instance.LogoAlignment = value; } [Microsoft.SharePoint.Client.RemoteAttribute] public string MasterUrl { get => _Instance.MasterUrl; set => _Instance.MasterUrl = value; } @@ -252,7 +251,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public bool NavAudienceTargetingEnabled { get => _Instance.NavAudienceTargetingEnabled; set => _Instance.NavAudienceTargetingEnabled = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.Navigation Navigation { get => _Instance.Navigation; } + public global::Microsoft.SharePoint.Client.Navigation Navigation { get => _Instance.Navigation; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool NextStepsFirstRunEnabled { get => _Instance.NextStepsFirstRunEnabled; set => _Instance.NextStepsFirstRunEnabled = value; } @@ -273,10 +272,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public bool OverwriteTranslationsOnChange { get => _Instance.OverwriteTranslationsOnChange; set => _Instance.OverwriteTranslationsOnChange = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.WebInformation ParentWeb { get => _Instance.ParentWeb; } + public global::Microsoft.SharePoint.Client.WebInformation ParentWeb { get => _Instance.ParentWeb; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ResourcePath ResourcePath { get => _Instance.ResourcePath; } + public global::Microsoft.SharePoint.Client.ResourcePath ResourcePath { get => _Instance.ResourcePath; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool PreviewFeaturesEnabled { get => _Instance.PreviewFeaturesEnabled; } @@ -285,43 +284,43 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public string PrimaryColor { get => _Instance.PrimaryColor; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.PushNotificationSubscriberCollection PushNotificationSubscribers { get => _Instance.PushNotificationSubscribers; } + public global::Microsoft.SharePoint.Client.PushNotificationSubscriberCollection PushNotificationSubscribers { get => _Instance.PushNotificationSubscribers; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool QuickLaunchEnabled { get => _Instance.QuickLaunchEnabled; set => _Instance.QuickLaunchEnabled = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.RecycleBinItemCollection RecycleBin { get => _Instance.RecycleBin; } + public global::Microsoft.SharePoint.Client.RecycleBinItemCollection RecycleBin { get => _Instance.RecycleBin; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool RecycleBinEnabled { get => _Instance.RecycleBinEnabled; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.RegionalSettings RegionalSettings { get => _Instance.RegionalSettings; } + public global::Microsoft.SharePoint.Client.RegionalSettings RegionalSettings { get => _Instance.RegionalSettings; } [Microsoft.SharePoint.Client.RemoteAttribute] public string RequestAccessEmail { get => _Instance.RequestAccessEmail; set => _Instance.RequestAccessEmail = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.RoleDefinitionCollection RoleDefinitions { get => _Instance.RoleDefinitions; } + public global::Microsoft.SharePoint.Client.RoleDefinitionCollection RoleDefinitions { get => _Instance.RoleDefinitions; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.Folder RootFolder { get => _Instance.RootFolder; } + public global::Microsoft.SharePoint.Client.Folder RootFolder { get => _Instance.RootFolder; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool SaveSiteAsTemplateEnabled { get => _Instance.SaveSiteAsTemplateEnabled; set => _Instance.SaveSiteAsTemplateEnabled = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.SearchBoxInNavBarType SearchBoxInNavBar { get => _Instance.SearchBoxInNavBar; set => _Instance.SearchBoxInNavBar = value; } + public global::Microsoft.SharePoint.Client.SearchBoxInNavBarType SearchBoxInNavBar { get => _Instance.SearchBoxInNavBar; set => _Instance.SearchBoxInNavBar = value; } [Microsoft.SharePoint.Client.RemoteAttribute] public string SearchBoxPlaceholderText { get => _Instance.SearchBoxPlaceholderText; set => _Instance.SearchBoxPlaceholderText = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.SearchScopeType SearchScope { get => _Instance.SearchScope; set => _Instance.SearchScope = value; } + public global::Microsoft.SharePoint.Client.SearchScopeType SearchScope { get => _Instance.SearchScope; set => _Instance.SearchScope = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ResourcePath ServerRelativePath { get => _Instance.ServerRelativePath; } + public global::Microsoft.SharePoint.Client.ResourcePath ServerRelativePath { get => _Instance.ServerRelativePath; } [Microsoft.SharePoint.Client.RemoteAttribute] public string ServerRelativeUrl { get => _Instance.ServerRelativeUrl; set => _Instance.ServerRelativeUrl = value; } @@ -330,10 +329,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public bool ShowUrlStructureForCurrentUser { get => _Instance.ShowUrlStructureForCurrentUser; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SiteCollectionCorporateCatalogAccessor SiteCollectionAppCatalog { get => _Instance.SiteCollectionAppCatalog; } + public global::Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.SiteCollectionCorporateCatalogAccessor SiteCollectionAppCatalog { get => _Instance.SiteCollectionAppCatalog; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.GroupCollection SiteGroups { get => _Instance.SiteGroups; } + public global::Microsoft.SharePoint.Client.GroupCollection SiteGroups { get => _Instance.SiteGroups; } [Microsoft.SharePoint.Client.RemoteAttribute] public string SiteLogoDescription { get => _Instance.SiteLogoDescription; set => _Instance.SiteLogoDescription = value; } @@ -342,22 +341,22 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public string SiteLogoUrl { get => _Instance.SiteLogoUrl; set => _Instance.SiteLogoUrl = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.List SiteUserInfoList { get => _Instance.SiteUserInfoList; } + public global::Microsoft.SharePoint.Client.List SiteUserInfoList { get => _Instance.SiteUserInfoList; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.UserCollection SiteUsers { get => _Instance.SiteUsers; } + public global::Microsoft.SharePoint.Client.UserCollection SiteUsers { get => _Instance.SiteUsers; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.Collections.Generic.IEnumerable SupportedUILanguageIds { get => _Instance.SupportedUILanguageIds; set => _Instance.SupportedUILanguageIds = value; } + public global::System.Collections.Generic.IEnumerable SupportedUILanguageIds { get => _Instance.SupportedUILanguageIds; set => _Instance.SupportedUILanguageIds = value; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool SyndicationEnabled { get => _Instance.SyndicationEnabled; set => _Instance.SyndicationEnabled = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.SharingState TenantAdminMembersCanShare { get => _Instance.TenantAdminMembersCanShare; } + public global::Microsoft.SharePoint.Client.SharingState TenantAdminMembersCanShare { get => _Instance.TenantAdminMembersCanShare; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TenantCorporateCatalogAccessor TenantAppCatalog { get => _Instance.TenantAppCatalog; } + public global::Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.TenantCorporateCatalogAccessor TenantAppCatalog { get => _Instance.TenantAppCatalog; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool TenantTagPolicyEnabled { get => _Instance.TenantTagPolicyEnabled; } @@ -366,7 +365,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public string ThemedCssFolderUrl { get => _Instance.ThemedCssFolderUrl; set => _Instance.ThemedCssFolderUrl = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ThemeInfo ThemeInfo { get => _Instance.ThemeInfo; } + public global::Microsoft.SharePoint.Client.ThemeInfo ThemeInfo { get => _Instance.ThemeInfo; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool ThirdPartyMdmEnabled { get => _Instance.ThirdPartyMdmEnabled; } @@ -378,10 +377,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public string TitleForExistingLanguage { get => _Instance.TitleForExistingLanguage; set => _Instance.TitleForExistingLanguage = value; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.UserResource TitleResource { get => _Instance.TitleResource; } + public global::Microsoft.SharePoint.Client.UserResource TitleResource { get => _Instance.TitleResource; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.Collections.Generic.IEnumerable TitleTranslations { get => _Instance.TitleTranslations; set => _Instance.TitleTranslations = value; } + public global::System.Collections.Generic.IEnumerable TitleTranslations { get => _Instance.TitleTranslations; set => _Instance.TitleTranslations = value; } [Microsoft.SharePoint.Client.RemoteAttribute] public bool TreeViewEnabled { get => _Instance.TreeViewEnabled; set => _Instance.TreeViewEnabled = value; } @@ -399,10 +398,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public bool UseAccessRequestDefault { get => _Instance.UseAccessRequestDefault; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.UserCustomActionCollection UserCustomActions { get => _Instance.UserCustomActions; } + public global::Microsoft.SharePoint.Client.UserCustomActionCollection UserCustomActions { get => _Instance.UserCustomActions; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.WebCollection Webs { get => _Instance.Webs; } + public global::Microsoft.SharePoint.Client.WebCollection Webs { get => _Instance.Webs; } [Microsoft.SharePoint.Client.RemoteAttribute] public string WebTemplate { get => _Instance.WebTemplate; } @@ -417,39 +416,37 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP public string WelcomePage { get => _Instance.WelcomePage; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.Workflow.WorkflowAssociationCollection WorkflowAssociations { get => _Instance.WorkflowAssociations; } + public global::Microsoft.SharePoint.Client.Workflow.WorkflowAssociationCollection WorkflowAssociations { get => _Instance.WorkflowAssociations; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.Workflow.WorkflowTemplateCollection WorkflowTemplates { get => _Instance.WorkflowTemplates; } + public global::Microsoft.SharePoint.Client.Workflow.WorkflowTemplateCollection WorkflowTemplates { get => _Instance.WorkflowTemplates; } - - - public System.Uri WebUrlFromPageUrlDirect(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext context, System.Uri pageFullUrl) + public global::System.Uri WebUrlFromPageUrlDirect(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext context, global::System.Uri pageFullUrl) { - Microsoft.SharePoint.Client.ClientContext context_ = Mapster.TypeAdapter.Adapt(context); - System.Uri pageFullUrl_ = pageFullUrl; - var result__258107370 = Microsoft.SharePoint.Client.Web.WebUrlFromPageUrlDirect(context_, pageFullUrl_); + global::Microsoft.SharePoint.Client.ClientContext context_ = Mapster.TypeAdapter.Adapt(context); + global::System.Uri pageFullUrl_ = pageFullUrl; + var result__258107370 = global::Microsoft.SharePoint.Client.Web.WebUrlFromPageUrlDirect(context_, pageFullUrl_); return result__258107370; } - public System.Uri WebUrlFromFolderUrlDirect(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext context, System.Uri folderFullUrl) + public global::System.Uri WebUrlFromFolderUrlDirect(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext context, global::System.Uri folderFullUrl) { - Microsoft.SharePoint.Client.ClientContext context_ = Mapster.TypeAdapter.Adapt(context); - System.Uri folderFullUrl_ = folderFullUrl; - var result_21992317 = Microsoft.SharePoint.Client.Web.WebUrlFromFolderUrlDirect(context_, folderFullUrl_); + global::Microsoft.SharePoint.Client.ClientContext context_ = Mapster.TypeAdapter.Adapt(context); + global::System.Uri folderFullUrl_ = folderFullUrl; + var result_21992317 = global::Microsoft.SharePoint.Client.Web.WebUrlFromFolderUrlDirect(context_, folderFullUrl_); return result_21992317; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult DoesUserHavePermissions(Microsoft.SharePoint.Client.BasePermissions permissionMask) + public global::Microsoft.SharePoint.Client.ClientResult DoesUserHavePermissions(global::Microsoft.SharePoint.Client.BasePermissions permissionMask) { - Microsoft.SharePoint.Client.BasePermissions permissionMask_ = permissionMask; + global::Microsoft.SharePoint.Client.BasePermissions permissionMask_ = permissionMask; var result_563212462 = _Instance.DoesUserHavePermissions(permissionMask_); return result_563212462; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult GetUserEffectivePermissions(string userName) + public global::Microsoft.SharePoint.Client.ClientResult GetUserEffectivePermissions(string userName) { string userName_ = userName; var result__615383406 = _Instance.GetUserEffectivePermissions(userName_); @@ -466,36 +463,36 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult CreateOrganizationSharingLink(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink) + public global::Microsoft.SharePoint.Client.ClientResult CreateOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string url_ = url; bool isEditLink_ = isEditLink; - var result_2070260011 = Microsoft.SharePoint.Client.Web.CreateOrganizationSharingLink(context_, url_, isEditLink_); + var result_2070260011 = global::Microsoft.SharePoint.Client.Web.CreateOrganizationSharingLink(context_, url_, isEditLink_); return result_2070260011; } [Microsoft.SharePoint.Client.RemoteAttribute] - public void DestroyOrganizationSharingLink(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup) + public void DestroyOrganizationSharingLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string url_ = url; bool isEditLink_ = isEditLink; bool removeAssociatedSharingLinkGroup_ = removeAssociatedSharingLinkGroup; - Microsoft.SharePoint.Client.Web.DestroyOrganizationSharingLink(context_, url_, isEditLink_, removeAssociatedSharingLinkGroup_); + global::Microsoft.SharePoint.Client.Web.DestroyOrganizationSharingLink(context_, url_, isEditLink_, removeAssociatedSharingLinkGroup_); } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult GetSharingLinkKind(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string fileUrl) + public global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkKind(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string fileUrl) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string fileUrl_ = fileUrl; - var result_654626020 = Microsoft.SharePoint.Client.Web.GetSharingLinkKind(context_, fileUrl_); + var result_654626020 = global::Microsoft.SharePoint.Client.Web.GetSharingLinkKind(context_, fileUrl_); return result_654626020; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult GetSharingLinkData(string linkUrl) + public global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkData(string linkUrl) { string linkUrl_ = linkUrl; var result__2107757018 = _Instance.GetSharingLinkData(linkUrl_); @@ -503,42 +500,42 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult MapToIcon(string fileName, string progId, Microsoft.SharePoint.Client.Utilities.IconSize size) + public global::Microsoft.SharePoint.Client.ClientResult MapToIcon(string fileName, string progId, global::Microsoft.SharePoint.Client.Utilities.IconSize size) { string fileName_ = fileName; string progId_ = progId; - Microsoft.SharePoint.Client.Utilities.IconSize size_ = size; + global::Microsoft.SharePoint.Client.Utilities.IconSize size_ = size; var result_384589064 = _Instance.MapToIcon(fileName_, progId_, size_); return result_384589064; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult GetWebUrlFromPageUrl(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string pageFullUrl) + public global::Microsoft.SharePoint.Client.ClientResult GetWebUrlFromPageUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string pageFullUrl) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string pageFullUrl_ = pageFullUrl; - var result__907059837 = Microsoft.SharePoint.Client.Web.GetWebUrlFromPageUrl(context_, pageFullUrl_); + var result__907059837 = global::Microsoft.SharePoint.Client.Web.GetWebUrlFromPageUrl(context_, pageFullUrl_); return result__907059837; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.PushNotificationSubscriber RegisterPushNotificationSubscriber(System.Guid deviceAppInstanceId, string serviceToken) + public global::Microsoft.SharePoint.Client.PushNotificationSubscriber RegisterPushNotificationSubscriber(global::System.Guid deviceAppInstanceId, string serviceToken) { - System.Guid deviceAppInstanceId_ = deviceAppInstanceId; + global::System.Guid deviceAppInstanceId_ = deviceAppInstanceId; string serviceToken_ = serviceToken; var result__117534630 = _Instance.RegisterPushNotificationSubscriber(deviceAppInstanceId_, serviceToken_); return result__117534630; } [Microsoft.SharePoint.Client.RemoteAttribute] - public void UnregisterPushNotificationSubscriber(System.Guid deviceAppInstanceId) + public void UnregisterPushNotificationSubscriber(global::System.Guid deviceAppInstanceId) { - System.Guid deviceAppInstanceId_ = deviceAppInstanceId; + global::System.Guid deviceAppInstanceId_ = deviceAppInstanceId; _Instance.UnregisterPushNotificationSubscriber(deviceAppInstanceId_); } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.PushNotificationSubscriberCollection GetPushNotificationSubscribersByArgs(string customArgs) + public global::Microsoft.SharePoint.Client.PushNotificationSubscriberCollection GetPushNotificationSubscribersByArgs(string customArgs) { string customArgs_ = customArgs; var result_144086076 = _Instance.GetPushNotificationSubscribersByArgs(customArgs_); @@ -546,7 +543,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.PushNotificationSubscriberCollection GetPushNotificationSubscribersByUser(string userName) + public global::Microsoft.SharePoint.Client.PushNotificationSubscriberCollection GetPushNotificationSubscribersByUser(string userName) { string userName_ = userName; var result__1280834962 = _Instance.GetPushNotificationSubscribersByUser(userName_); @@ -554,23 +551,23 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult DoesPushNotificationSubscriberExist(System.Guid deviceAppInstanceId) + public global::Microsoft.SharePoint.Client.ClientResult DoesPushNotificationSubscriberExist(global::System.Guid deviceAppInstanceId) { - System.Guid deviceAppInstanceId_ = deviceAppInstanceId; + global::System.Guid deviceAppInstanceId_ = deviceAppInstanceId; var result__1309404561 = _Instance.DoesPushNotificationSubscriberExist(deviceAppInstanceId_); return result__1309404561; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.PushNotificationSubscriber GetPushNotificationSubscriber(System.Guid deviceAppInstanceId) + public global::Microsoft.SharePoint.Client.PushNotificationSubscriber GetPushNotificationSubscriber(global::System.Guid deviceAppInstanceId) { - System.Guid deviceAppInstanceId_ = deviceAppInstanceId; + global::System.Guid deviceAppInstanceId_ = deviceAppInstanceId; var result_1696633571 = _Instance.GetPushNotificationSubscriber(deviceAppInstanceId_); return result_1696633571; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.User GetSiteUserIncludingDeletedByPuid(string puid) + public global::Microsoft.SharePoint.Client.User GetSiteUserIncludingDeletedByPuid(string puid) { string puid_ = puid; var result__1448181221 = _Instance.GetSiteUserIncludingDeletedByPuid(puid_); @@ -578,7 +575,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.User GetUserById(int userId) + public global::Microsoft.SharePoint.Client.User GetUserById(int userId) { int userId_ = userId; var result__963170767 = _Instance.GetUserById(userId_); @@ -586,7 +583,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult EnsureTenantAppCatalog(string callerId) + public global::Microsoft.SharePoint.Client.ClientResult EnsureTenantAppCatalog(string callerId) { string callerId_ = callerId; var result__1044639826 = _Instance.EnsureTenantAppCatalog(callerId_); @@ -594,7 +591,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.ClientSideComponent.StorageEntity GetStorageEntity(string key) + public global::Microsoft.SharePoint.ClientSideComponent.StorageEntity GetStorageEntity(string key) { string key_ = key; var result__1529029872 = _Instance.GetStorageEntity(key_); @@ -619,9 +616,9 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public 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) + public 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.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string url_ = url; string peoplePickerInput_ = peoplePickerInput; string roleValue_ = roleValue; @@ -632,91 +629,91 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP string emailSubject_ = emailSubject; string emailBody_ = emailBody; bool useSimplifiedRoles_ = useSimplifiedRoles; - var result_816157054 = Microsoft.SharePoint.Client.Web.ShareObject(context_, url_, peoplePickerInput_, roleValue_, groupId_, propagateAcl_, sendEmail_, includeAnonymousLinkInEmail_, emailSubject_, emailBody_, useSimplifiedRoles_); + var result_816157054 = global::Microsoft.SharePoint.Client.Web.ShareObject(context_, url_, peoplePickerInput_, roleValue_, groupId_, propagateAcl_, sendEmail_, includeAnonymousLinkInEmail_, emailSubject_, emailBody_, useSimplifiedRoles_); return result_816157054; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.SharingResult ForwardObjectLink(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, string peoplePickerInput, string emailSubject, string emailBody) + public global::Microsoft.SharePoint.Client.SharingResult ForwardObjectLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, string peoplePickerInput, string emailSubject, string emailBody) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string url_ = url; string peoplePickerInput_ = peoplePickerInput; string emailSubject_ = emailSubject; string emailBody_ = emailBody; - var result__1822800612 = Microsoft.SharePoint.Client.Web.ForwardObjectLink(context_, url_, peoplePickerInput_, emailSubject_, emailBody_); + var result__1822800612 = global::Microsoft.SharePoint.Client.Web.ForwardObjectLink(context_, url_, peoplePickerInput_, emailSubject_, emailBody_); return result__1822800612; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.SharingResult UnshareObject(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url) + public global::Microsoft.SharePoint.Client.SharingResult UnshareObject(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string url_ = url; - var result__823224569 = Microsoft.SharePoint.Client.Web.UnshareObject(context_, url_); + var result__823224569 = global::Microsoft.SharePoint.Client.Web.UnshareObject(context_, url_); return result__823224569; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ObjectSharingSettings GetObjectSharingSettings(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string objectUrl, int groupId, bool useSimplifiedRoles) + public global::Microsoft.SharePoint.Client.ObjectSharingSettings GetObjectSharingSettings(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string objectUrl, int groupId, bool useSimplifiedRoles) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string objectUrl_ = objectUrl; int groupId_ = groupId; bool useSimplifiedRoles_ = useSimplifiedRoles; - var result__679475674 = Microsoft.SharePoint.Client.Web.GetObjectSharingSettings(context_, objectUrl_, groupId_, useSimplifiedRoles_); + var result__679475674 = global::Microsoft.SharePoint.Client.Web.GetObjectSharingSettings(context_, objectUrl_, groupId_, useSimplifiedRoles_); return result__679475674; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult CreateAnonymousLink(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink) + public global::Microsoft.SharePoint.Client.ClientResult CreateAnonymousLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string url_ = url; bool isEditLink_ = isEditLink; - var result__820192309 = Microsoft.SharePoint.Client.Web.CreateAnonymousLink(context_, url_, isEditLink_); + var result__820192309 = global::Microsoft.SharePoint.Client.Web.CreateAnonymousLink(context_, url_, isEditLink_); return result__820192309; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult CreateAnonymousLinkWithExpiration(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, string expirationString) + public global::Microsoft.SharePoint.Client.ClientResult CreateAnonymousLinkWithExpiration(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, string expirationString) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string url_ = url; bool isEditLink_ = isEditLink; string expirationString_ = expirationString; - var result__1044574026 = Microsoft.SharePoint.Client.Web.CreateAnonymousLinkWithExpiration(context_, url_, isEditLink_, expirationString_); + var result__1044574026 = global::Microsoft.SharePoint.Client.Web.CreateAnonymousLinkWithExpiration(context_, url_, isEditLink_, expirationString_); return result__1044574026; } [Microsoft.SharePoint.Client.RemoteAttribute] - public void DeleteAllAnonymousLinksForObject(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url) + public void DeleteAllAnonymousLinksForObject(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string url_ = url; - Microsoft.SharePoint.Client.Web.DeleteAllAnonymousLinksForObject(context_, url_); + global::Microsoft.SharePoint.Client.Web.DeleteAllAnonymousLinksForObject(context_, url_); } [Microsoft.SharePoint.Client.RemoteAttribute] - public void DeleteAnonymousLinkForObject(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup) + public void DeleteAnonymousLinkForObject(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, bool removeAssociatedSharingLinkGroup) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string url_ = url; bool isEditLink_ = isEditLink; bool removeAssociatedSharingLinkGroup_ = removeAssociatedSharingLinkGroup; - Microsoft.SharePoint.Client.Web.DeleteAnonymousLinkForObject(context_, url_, isEditLink_, removeAssociatedSharingLinkGroup_); + global::Microsoft.SharePoint.Client.Web.DeleteAnonymousLinkForObject(context_, url_, isEditLink_, removeAssociatedSharingLinkGroup_); } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ListCollection GetLists(Microsoft.SharePoint.Client.GetListsParameters getListsParams) + public global::Microsoft.SharePoint.Client.ListCollection GetLists(global::Microsoft.SharePoint.Client.GetListsParameters getListsParams) { - Microsoft.SharePoint.Client.GetListsParameters getListsParams_ = getListsParams; + global::Microsoft.SharePoint.Client.GetListsParameters getListsParams_ = getListsParams; var result_1293372807 = _Instance.GetLists(getListsParams_); return result_1293372807; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.WebTemplateCollection GetAvailableWebTemplates(uint lcid, bool doIncludeCrossLanguage) + public global::Microsoft.SharePoint.Client.WebTemplateCollection GetAvailableWebTemplates(uint lcid, bool doIncludeCrossLanguage) { uint lcid_ = lcid; bool doIncludeCrossLanguage_ = doIncludeCrossLanguage; @@ -725,7 +722,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.List GetCatalog(int typeCatalog) + public global::Microsoft.SharePoint.Client.List GetCatalog(int typeCatalog) { int typeCatalog_ = typeCatalog; var result__1458409307 = _Instance.GetCatalog(typeCatalog_); @@ -733,35 +730,35 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.RecycleBinItemCollection GetRecycleBinItems(string pagingInfo, int rowLimit, bool isAscending, Microsoft.SharePoint.Client.RecycleBinOrderBy orderBy, Microsoft.SharePoint.Client.RecycleBinItemState itemState) + public global::Microsoft.SharePoint.Client.RecycleBinItemCollection GetRecycleBinItems(string pagingInfo, int rowLimit, bool isAscending, global::Microsoft.SharePoint.Client.RecycleBinOrderBy orderBy, global::Microsoft.SharePoint.Client.RecycleBinItemState itemState) { string pagingInfo_ = pagingInfo; int rowLimit_ = rowLimit; bool isAscending_ = isAscending; - Microsoft.SharePoint.Client.RecycleBinOrderBy orderBy_ = orderBy; - Microsoft.SharePoint.Client.RecycleBinItemState itemState_ = itemState; + global::Microsoft.SharePoint.Client.RecycleBinOrderBy orderBy_ = orderBy; + global::Microsoft.SharePoint.Client.RecycleBinItemState itemState_ = itemState; var result_694026616 = _Instance.GetRecycleBinItems(pagingInfo_, rowLimit_, isAscending_, orderBy_, itemState_); return result_694026616; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.RecycleBinItemCollection GetRecycleBinItemsByQueryInfo(Microsoft.SharePoint.Client.RecycleBinQueryInformation queryInfo) + public global::Microsoft.SharePoint.Client.RecycleBinItemCollection GetRecycleBinItemsByQueryInfo(global::Microsoft.SharePoint.Client.RecycleBinQueryInformation queryInfo) { - Microsoft.SharePoint.Client.RecycleBinQueryInformation queryInfo_ = queryInfo; + global::Microsoft.SharePoint.Client.RecycleBinQueryInformation queryInfo_ = queryInfo; var result__1467955603 = _Instance.GetRecycleBinItemsByQueryInfo(queryInfo_); return result__1467955603; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ChangeCollection GetChanges(Microsoft.SharePoint.Client.ChangeQuery query) + public global::Microsoft.SharePoint.Client.ChangeCollection GetChanges(global::Microsoft.SharePoint.Client.ChangeQuery query) { - Microsoft.SharePoint.Client.ChangeQuery query_ = query; + global::Microsoft.SharePoint.Client.ChangeQuery query_ = query; var result_536201347 = _Instance.GetChanges(query_); return result_536201347; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.List GetList(string strUrl) + public global::Microsoft.SharePoint.Client.List GetList(string strUrl) { string strUrl_ = strUrl; var result_1483657030 = _Instance.GetList(strUrl_); @@ -769,15 +766,15 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.List GetListUsingPath(Microsoft.SharePoint.Client.ResourcePath path) + public global::Microsoft.SharePoint.Client.List GetListUsingPath(global::Microsoft.SharePoint.Client.ResourcePath path) { - Microsoft.SharePoint.Client.ResourcePath path_ = path; + global::Microsoft.SharePoint.Client.ResourcePath path_ = path; var result__2113955437 = _Instance.GetListUsingPath(path_); return result__2113955437; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ListItem GetListItem(string strUrl) + public global::Microsoft.SharePoint.Client.ListItem GetListItem(string strUrl) { string strUrl_ = strUrl; var result_101515089 = _Instance.GetListItem(strUrl_); @@ -785,15 +782,15 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ListItem GetListItemUsingPath(Microsoft.SharePoint.Client.ResourcePath path) + public global::Microsoft.SharePoint.Client.ListItem GetListItemUsingPath(global::Microsoft.SharePoint.Client.ResourcePath path) { - Microsoft.SharePoint.Client.ResourcePath path_ = path; + global::Microsoft.SharePoint.Client.ResourcePath path_ = path; var result__577192176 = _Instance.GetListItemUsingPath(path_); return result__577192176; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ListItem GetListItemByResourceId(string resourceId) + public global::Microsoft.SharePoint.Client.ListItem GetListItemByResourceId(string resourceId) { string resourceId_ = resourceId; var result_569057021 = _Instance.GetListItemByResourceId(resourceId_); @@ -801,7 +798,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.BusinessData.MetadataModel.Entity GetEntity(string @namespace, string name) + public global::Microsoft.BusinessData.MetadataModel.Entity GetEntity(string @namespace, string name) { string @namespace_ = @namespace; string name_ = name; @@ -810,30 +807,30 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.BusinessData.MetadataModel.AppBdcCatalog GetAppBdcCatalogForAppInstance(System.Guid appInstanceId) + public global::Microsoft.BusinessData.MetadataModel.AppBdcCatalog GetAppBdcCatalogForAppInstance(global::System.Guid appInstanceId) { - System.Guid appInstanceId_ = appInstanceId; + global::System.Guid appInstanceId_ = appInstanceId; var result__1179378574 = _Instance.GetAppBdcCatalogForAppInstance(appInstanceId_); return result__1179378574; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.BusinessData.MetadataModel.AppBdcCatalog GetAppBdcCatalog() + public global::Microsoft.BusinessData.MetadataModel.AppBdcCatalog GetAppBdcCatalog() { var result__1128404427 = _Instance.GetAppBdcCatalog(); return result__1128404427; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.WebCollection GetSubwebsForCurrentUser(Microsoft.SharePoint.Client.SubwebQuery query) + public global::Microsoft.SharePoint.Client.WebCollection GetSubwebsForCurrentUser(global::Microsoft.SharePoint.Client.SubwebQuery query) { - Microsoft.SharePoint.Client.SubwebQuery query_ = query; + global::Microsoft.SharePoint.Client.SubwebQuery query_ = query; var result__34039800 = _Instance.GetSubwebsForCurrentUser(query_); return result__34039800; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult GetSPAppContextAsStream() + public global::Microsoft.SharePoint.Client.ClientResult GetSPAppContextAsStream() { var result_127789125 = _Instance.GetSPAppContextAsStream(); return result_127789125; @@ -846,7 +843,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.View GetViewFromUrl(string listUrl) + public global::Microsoft.SharePoint.Client.View GetViewFromUrl(string listUrl) { string listUrl_ = listUrl; var result_1074039380 = _Instance.GetViewFromUrl(listUrl_); @@ -854,15 +851,15 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.View GetViewFromPath(Microsoft.SharePoint.Client.ResourcePath listPath) + public global::Microsoft.SharePoint.Client.View GetViewFromPath(global::Microsoft.SharePoint.Client.ResourcePath listPath) { - Microsoft.SharePoint.Client.ResourcePath listPath_ = listPath; + global::Microsoft.SharePoint.Client.ResourcePath listPath_ = listPath; var result_1126862484 = _Instance.GetViewFromPath(listPath_); return result_1126862484; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.File GetFileByServerRelativeUrl(string serverRelativeUrl) + public global::Microsoft.SharePoint.Client.File GetFileByServerRelativeUrl(string serverRelativeUrl) { string serverRelativeUrl_ = serverRelativeUrl; var result__979182843 = _Instance.GetFileByServerRelativeUrl(serverRelativeUrl_); @@ -870,66 +867,66 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.File GetFileByServerRelativePath(Microsoft.SharePoint.Client.ResourcePath serverRelativePath) + public global::Microsoft.SharePoint.Client.File GetFileByServerRelativePath(global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath) { - Microsoft.SharePoint.Client.ResourcePath serverRelativePath_ = serverRelativePath; + global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath_ = serverRelativePath; var result_1456830503 = _Instance.GetFileByServerRelativePath(serverRelativePath_); return result_1456830503; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.Collections.Generic.IList GetDocumentLibraries(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl) + public global::System.Collections.Generic.IList GetDocumentLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string webFullUrl_ = webFullUrl; - var result_2078170246 = Microsoft.SharePoint.Client.Web.GetDocumentLibraries(context_, webFullUrl_); + var result_2078170246 = global::Microsoft.SharePoint.Client.Web.GetDocumentLibraries(context_, webFullUrl_); return result_2078170246; } [Microsoft.SharePoint.Client.RemoteAttribute] - public System.Collections.Generic.IList GetDocumentAndMediaLibraries(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl, bool includePageLibraries) + public global::System.Collections.Generic.IList GetDocumentAndMediaLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl, bool includePageLibraries) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string webFullUrl_ = webFullUrl; bool includePageLibraries_ = includePageLibraries; - var result__431075153 = Microsoft.SharePoint.Client.Web.GetDocumentAndMediaLibraries(context_, webFullUrl_, includePageLibraries_); + var result__431075153 = global::Microsoft.SharePoint.Client.Web.GetDocumentAndMediaLibraries(context_, webFullUrl_, includePageLibraries_); return result__431075153; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult DefaultDocumentLibraryUrl(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webUrl) + public global::Microsoft.SharePoint.Client.ClientResult DefaultDocumentLibraryUrl(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webUrl) { - Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); + global::Microsoft.SharePoint.Client.ClientRuntimeContext context_ = Mapster.TypeAdapter.Adapt(context); string webUrl_ = webUrl; - var result_1125717726 = Microsoft.SharePoint.Client.Web.DefaultDocumentLibraryUrl(context_, webUrl_); + var result_1125717726 = global::Microsoft.SharePoint.Client.Web.DefaultDocumentLibraryUrl(context_, webUrl_); return result_1125717726; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.List DefaultDocumentLibrary() + public global::Microsoft.SharePoint.Client.List DefaultDocumentLibrary() { var result_69743263 = _Instance.DefaultDocumentLibrary(); return result_69743263; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.File GetFileById(System.Guid uniqueId) + public global::Microsoft.SharePoint.Client.File GetFileById(global::System.Guid uniqueId) { - System.Guid uniqueId_ = uniqueId; + global::System.Guid uniqueId_ = uniqueId; var result__223228596 = _Instance.GetFileById(uniqueId_); return result__223228596; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.Folder GetFolderById(System.Guid uniqueId) + public global::Microsoft.SharePoint.Client.Folder GetFolderById(global::System.Guid uniqueId) { - System.Guid uniqueId_ = uniqueId; + global::System.Guid uniqueId_ = uniqueId; var result__2111623002 = _Instance.GetFolderById(uniqueId_); return result__2111623002; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.File GetFileByLinkingUrl(string linkingUrl) + public global::Microsoft.SharePoint.Client.File GetFileByLinkingUrl(string linkingUrl) { string linkingUrl_ = linkingUrl; var result__104450524 = _Instance.GetFileByLinkingUrl(linkingUrl_); @@ -937,7 +934,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.File GetFileByGuestUrl(string guestUrl) + public global::Microsoft.SharePoint.Client.File GetFileByGuestUrl(string guestUrl) { string guestUrl_ = guestUrl; var result_1819257688 = _Instance.GetFileByGuestUrl(guestUrl_); @@ -945,7 +942,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.File GetFileByGuestUrlEnsureAccess(string guestUrl, bool ensureAccess) + public global::Microsoft.SharePoint.Client.File GetFileByGuestUrlEnsureAccess(string guestUrl, bool ensureAccess) { string guestUrl_ = guestUrl; bool ensureAccess_ = ensureAccess; @@ -954,7 +951,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.File GetFileByWOPIFrameUrl(string wopiFrameUrl) + public global::Microsoft.SharePoint.Client.File GetFileByWOPIFrameUrl(string wopiFrameUrl) { string wopiFrameUrl_ = wopiFrameUrl; var result_1184208158 = _Instance.GetFileByWOPIFrameUrl(wopiFrameUrl_); @@ -962,7 +959,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.File GetFileByUrl(string fileUrl) + public global::Microsoft.SharePoint.Client.File GetFileByUrl(string fileUrl) { string fileUrl_ = fileUrl; var result__84028506 = _Instance.GetFileByUrl(fileUrl_); @@ -970,7 +967,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.Folder GetFolderByServerRelativeUrl(string serverRelativeUrl) + public global::Microsoft.SharePoint.Client.Folder GetFolderByServerRelativeUrl(string serverRelativeUrl) { string serverRelativeUrl_ = serverRelativeUrl; var result_1556909417 = _Instance.GetFolderByServerRelativeUrl(serverRelativeUrl_); @@ -978,9 +975,9 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.Folder GetFolderByServerRelativePath(Microsoft.SharePoint.Client.ResourcePath serverRelativePath) + public global::Microsoft.SharePoint.Client.Folder GetFolderByServerRelativePath(global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath) { - Microsoft.SharePoint.Client.ResourcePath serverRelativePath_ = serverRelativePath; + global::Microsoft.SharePoint.Client.ResourcePath serverRelativePath_ = serverRelativePath; var result__1812606997 = _Instance.GetFolderByServerRelativePath(serverRelativePath_); return result__1812606997; } @@ -999,7 +996,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult PageContextInfo(bool includeODBSettings, bool emitNavigationInfo) + public global::Microsoft.SharePoint.Client.ClientResult PageContextInfo(bool includeODBSettings, bool emitNavigationInfo) { bool includeODBSettings_ = includeODBSettings; bool emitNavigationInfo_ = emitNavigationInfo; @@ -1008,48 +1005,48 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult PageContextCore() + public global::Microsoft.SharePoint.Client.ClientResult PageContextCore() { var result_769613763 = _Instance.PageContextCore(); return result_769613763; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.AppInstance GetAppInstanceById(System.Guid appInstanceId) + public global::Microsoft.SharePoint.Client.AppInstance GetAppInstanceById(global::System.Guid appInstanceId) { - System.Guid appInstanceId_ = appInstanceId; + global::System.Guid appInstanceId_ = appInstanceId; var result__860011802 = _Instance.GetAppInstanceById(appInstanceId_); return result__860011802; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientObjectList GetAppInstancesByProductId(System.Guid productId) + public global::Microsoft.SharePoint.Client.ClientObjectList GetAppInstancesByProductId(global::System.Guid productId) { - System.Guid productId_ = productId; + global::System.Guid productId_ = productId; var result__1349849408 = _Instance.GetAppInstancesByProductId(productId_); return result__1349849408; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.AppInstance LoadAndInstallAppInSpecifiedLocale(System.IO.Stream appPackageStream, int installationLocaleLCID) + public global::Microsoft.SharePoint.Client.AppInstance LoadAndInstallAppInSpecifiedLocale(global::System.IO.Stream appPackageStream, int installationLocaleLCID) { - System.IO.Stream appPackageStream_ = appPackageStream; + global::System.IO.Stream appPackageStream_ = appPackageStream; int installationLocaleLCID_ = installationLocaleLCID; var result__860277814 = _Instance.LoadAndInstallAppInSpecifiedLocale(appPackageStream_, installationLocaleLCID_); return result__860277814; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.AppInstance LoadApp(System.IO.Stream appPackageStream, int installationLocaleLCID) + public global::Microsoft.SharePoint.Client.AppInstance LoadApp(global::System.IO.Stream appPackageStream, int installationLocaleLCID) { - System.IO.Stream appPackageStream_ = appPackageStream; + global::System.IO.Stream appPackageStream_ = appPackageStream; int installationLocaleLCID_ = installationLocaleLCID; var result__1043610289 = _Instance.LoadApp(appPackageStream_, installationLocaleLCID_); return result__1043610289; } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.ClientResult AddPlaceholderUser(string listId, string placeholderText) + public global::Microsoft.SharePoint.Client.ClientResult AddPlaceholderUser(string listId, string placeholderText) { string listId_ = listId; string placeholderText_ = placeholderText; @@ -1058,9 +1055,9 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.AppInstance LoadAndInstallApp(System.IO.Stream appPackageStream) + public global::Microsoft.SharePoint.Client.AppInstance LoadAndInstallApp(global::System.IO.Stream appPackageStream) { - System.IO.Stream appPackageStream_ = appPackageStream; + global::System.IO.Stream appPackageStream_ = appPackageStream; var result__1506697459 = _Instance.LoadAndInstallApp(appPackageStream_); return result__1506697459; } @@ -1100,7 +1097,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.User EnsureUser(string logonName) + public global::Microsoft.SharePoint.Client.User EnsureUser(string logonName) { string logonName_ = logonName; var result_1853915411 = _Instance.EnsureUser(logonName_); @@ -1108,11 +1105,11 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } [Microsoft.SharePoint.Client.RemoteAttribute] - public Microsoft.SharePoint.Client.User EnsureUserByObjectId(System.Guid objectId, System.Guid tenantId, Microsoft.SharePoint.Client.Utilities.PrincipalType principalType) + public global::Microsoft.SharePoint.Client.User EnsureUserByObjectId(global::System.Guid objectId, global::System.Guid tenantId, global::Microsoft.SharePoint.Client.Utilities.PrincipalType principalType) { - System.Guid objectId_ = objectId; - System.Guid tenantId_ = tenantId; - Microsoft.SharePoint.Client.Utilities.PrincipalType principalType_ = principalType; + global::System.Guid objectId_ = objectId; + global::System.Guid tenantId_ = tenantId; + global::Microsoft.SharePoint.Client.Utilities.PrincipalType principalType_ = principalType; var result__1490083264 = _Instance.EnsureUserByObjectId(objectId_, tenantId_, principalType_); return result__1490083264; } @@ -1128,27 +1125,22 @@ namespace ProxyInterfaceSourceGeneratorTests.Source.PnP } - - - - - - public WebProxy(Microsoft.SharePoint.Client.Web instance) : base(instance) + public WebProxy(global::Microsoft.SharePoint.Client.Web instance) : base(instance) { _Instance = instance; _InstanceSecurableObject = instance; - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_205293328 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_205293328)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1345472640 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy1345472640)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_572349648 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy(instance_572349648)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy214349770 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientRuntimeContextProxy) proxy214349770)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_895746668 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_895746668)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1674261376 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy1674261376)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_205438316 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy(instance_205438316)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_437526006 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientObjectProxy) proxy_437526006)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance592284880 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance592284880)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_300636294 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_300636294)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_247129254 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy(instance_247129254)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_117192422 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.SecurableObjectProxy) proxy_117192422)._Instance); - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_1283184912 => new ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy(instance_1283184912)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1267236400 => ((ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy) proxy1267236400)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance_1483513702 => new global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy(instance_1483513702)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy343311664 => ((global::ProxyInterfaceSourceGeneratorTests.Source.PnP.ClientContextProxy) proxy343311664)._Instance); } diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/NoNamespaceProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/NoNamespaceProxy.g.cs index b4272b6..f888c26 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/NoNamespaceProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/NoNamespaceProxy.g.cs @@ -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; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.Generic_T__1Proxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.Generic`1Proxy.g.cs similarity index 72% rename from tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.Generic_T__1Proxy.g.cs rename to tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.Generic`1Proxy.g.cs index 8921425..0e99042 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.Generic_T__1Proxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.Generic`1Proxy.g.cs @@ -12,13 +12,10 @@ using System; namespace ProxyInterfaceSourceGeneratorTests.Source { - public partial class GenericProxy : IGeneric + public partial class GenericProxy : global::ProxyInterfaceSourceGeneratorTests.Source.IGeneric { - public ProxyInterfaceSourceGeneratorTests.Source.Generic _Instance { get; } + public global::ProxyInterfaceSourceGeneratorTests.Source.Generic _Instance { get; } - - - public T Test(T value) { T value_ = value; @@ -27,12 +24,7 @@ namespace ProxyInterfaceSourceGeneratorTests.Source } - - - - - - public GenericProxy(ProxyInterfaceSourceGeneratorTests.Source.Generic instance) + public GenericProxy(global::ProxyInterfaceSourceGeneratorTests.Source.Generic instance) { _Instance = instance; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.HumanProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.HumanProxy.g.cs index eb7e0bf..f093a59 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.HumanProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.HumanProxy.g.cs @@ -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; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IGeneric.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IGeneric.g.cs index 28b320b..8b48a00 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IGeneric.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IGeneric.g.cs @@ -14,15 +14,9 @@ namespace ProxyInterfaceSourceGeneratorTests.Source { public partial interface IGeneric { - ProxyInterfaceSourceGeneratorTests.Source.Generic _Instance { get; } - - + global::ProxyInterfaceSourceGeneratorTests.Source.Generic _Instance { get; } T Test(T value); - - - - } } #nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHttpClient.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHttpClient.g.cs index b4b4d63..5e015dd 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHttpClient.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHttpClient.g.cs @@ -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 GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri); + global::System.Threading.Tasks.Task GetStringAsync(global::System.Uri? requestUri); - System.Threading.Tasks.Task GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri); + global::System.Threading.Tasks.Task GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetStringAsync(System.Uri? requestUri); + global::System.Threading.Tasks.Task GetStringAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri); - System.Threading.Tasks.Task GetStringAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task GetByteArrayAsync(global::System.Uri? requestUri); - System.Threading.Tasks.Task GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri); + global::System.Threading.Tasks.Task GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetByteArrayAsync(System.Uri? requestUri); + global::System.Threading.Tasks.Task GetByteArrayAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri); - System.Threading.Tasks.Task GetByteArrayAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri); + global::System.Threading.Tasks.Task GetStreamAsync(global::System.Uri? requestUri); - System.Threading.Tasks.Task GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task GetStreamAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetStreamAsync(System.Uri? requestUri); + global::System.Threading.Tasks.Task GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri); - System.Threading.Tasks.Task GetStreamAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task GetAsync(global::System.Uri? requestUri); - System.Threading.Tasks.Task GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri); + global::System.Threading.Tasks.Task GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpCompletionOption completionOption); - System.Threading.Tasks.Task GetAsync(System.Uri? requestUri); + global::System.Threading.Tasks.Task GetAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpCompletionOption completionOption); - System.Threading.Tasks.Task GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpCompletionOption completionOption); + global::System.Threading.Tasks.Task GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetAsync(System.Uri? requestUri, System.Net.Http.HttpCompletionOption completionOption); + global::System.Threading.Tasks.Task GetAsync(global::System.Uri? requestUri, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task GetAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content); - System.Threading.Tasks.Task GetAsync(System.Uri? requestUri, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task PostAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content); - System.Threading.Tasks.Task PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content); + global::System.Threading.Tasks.Task PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task PostAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content); + global::System.Threading.Tasks.Task PostAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content); - System.Threading.Tasks.Task PostAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task PutAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content); - System.Threading.Tasks.Task PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content); + global::System.Threading.Tasks.Task PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task PutAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content); + global::System.Threading.Tasks.Task PutAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content); - System.Threading.Tasks.Task PutAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task PatchAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content); - System.Threading.Tasks.Task PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content); + global::System.Threading.Tasks.Task PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task PatchAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content); + global::System.Threading.Tasks.Task PatchAsync(global::System.Uri? requestUri, global::System.Net.Http.HttpContent? content, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri); - System.Threading.Tasks.Task PatchAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task DeleteAsync(global::System.Uri? requestUri); - System.Threading.Tasks.Task DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri); + global::System.Threading.Tasks.Task DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task DeleteAsync(System.Uri? requestUri); - - System.Threading.Tasks.Task DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken); - - System.Threading.Tasks.Task DeleteAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task 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 SendAsync(System.Net.Http.HttpRequestMessage request); + global::System.Threading.Tasks.Task SendAsync(global::System.Net.Http.HttpRequestMessage request); - System.Threading.Tasks.Task SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken); - System.Threading.Tasks.Task SendAsync(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption); + global::System.Threading.Tasks.Task SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Net.Http.HttpCompletionOption completionOption); - System.Threading.Tasks.Task SendAsync(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken); + global::System.Threading.Tasks.Task SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Net.Http.HttpCompletionOption completionOption, global::System.Threading.CancellationToken cancellationToken); void CancelPendingRequests(); - - - - } } #nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHttpMessageInvoker.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHttpMessageInvoker.g.cs index 73d6c6e..3008c32 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHttpMessageInvoker.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHttpMessageInvoker.g.cs @@ -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 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 SendAsync(global::System.Net.Http.HttpRequestMessage request, global::System.Threading.CancellationToken cancellationToken); } } #nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHuman.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHuman.g.cs index 11198de..f656769 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHuman.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IHuman.g.cs @@ -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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IMixedVisibility.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IMixedVisibility.g.cs index dd05201..32e53e4 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IMixedVisibility.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IMixedVisibility.g.cs @@ -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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IOperatorTest.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IOperatorTest.g.cs index 2bdf307..ed9af73 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IOperatorTest.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IOperatorTest.g.cs @@ -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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs index 6d71e82..4e0f095 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPerson.g.cs @@ -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 AddHuman(ProxyInterfaceSourceGeneratorTests.Source.IHuman h); + global::System.Collections.Generic.IList AddHuman(global::ProxyInterfaceSourceGeneratorTests.Source.IHuman h); void Void(); @@ -58,22 +56,18 @@ namespace ProxyInterfaceSourceGeneratorTests.Source bool Generic2(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 Method2Async(); + global::System.Threading.Tasks.Task Method2Async(); [System.ComponentModel.DataAnnotations.DisplayAttribute(Name = "M3")] - System.Threading.Tasks.Task Method3Async(); + global::System.Threading.Tasks.Task Method3Async(); - void CreateInvokeHttpClient(int i = 5, string? appId = null, System.Collections.Generic.IReadOnlyDictionary? metadata = null, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)); + void CreateInvokeHttpClient(int i = 5, string? appId = null, global::System.Collections.Generic.IReadOnlyDictionary? 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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPersonExtends.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPersonExtends.g.cs index fd82868..8941e70 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPersonExtends.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IPersonExtends.g.cs @@ -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(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 Method2Async(); + global::System.Threading.Tasks.Task Method2Async(); - System.Threading.Tasks.Task Method3Async(); + global::System.Threading.Tasks.Task Method3Async(); void Dispose(); - - - - } } #nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ITestClassInternal.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ITestClassInternal.g.cs index b562ea1..55bb91c 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ITestClassInternal.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ITestClassInternal.g.cs @@ -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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IÜberGeneric.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IÜberGeneric.g.cs new file mode 100644 index 0000000..0aa50e1 --- /dev/null +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.IÜberGeneric.g.cs @@ -0,0 +1,26 @@ +//---------------------------------------------------------------------------------------- +// +// 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. +// +//---------------------------------------------------------------------------------------- + +#nullable enable +using System; + +namespace ProxyInterfaceSourceGeneratorTests.Source +{ + public partial interface IÜberGeneric + { + global::ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric _Instance { get; } + + T1 Test(T1 value); + + KAi Test(KAi value); + + TKey Test(TKey value); + } +} +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.MixedVisibilityProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.MixedVisibilityProxy.g.cs index 7978b0d..a77f05a 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.MixedVisibilityProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.MixedVisibilityProxy.g.cs @@ -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; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs index 2fd7210..c2f4d00 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.OperatorTestProxy.g.cs @@ -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; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonExtendsProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonExtendsProxy.g.cs index 355b017..9596d9b 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonExtendsProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonExtendsProxy.g.cs @@ -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 Method2Async() + public global::System.Threading.Tasks.Task Method2Async() { var result__57677169 = _Instance.Method2Async(); return result__57677169; } - public System.Threading.Tasks.Task Method3Async() + public global::System.Threading.Tasks.Task 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; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs index 216d9d3..74403f4 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PersonProxy.g.cs @@ -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 AddHuman(ProxyInterfaceSourceGeneratorTests.Source.IHuman h) + public global::System.Collections.Generic.IList AddHuman(global::ProxyInterfaceSourceGeneratorTests.Source.IHuman h) { - ProxyInterfaceSourceGeneratorTests.Source.Human h_ = Mapster.TypeAdapter.Adapt(h); + global::ProxyInterfaceSourceGeneratorTests.Source.Human h_ = Mapster.TypeAdapter.Adapt(h); var result_907493286 = _Instance.AddHuman(h_); - return Mapster.TypeAdapter.Adapt>(result_907493286); + return Mapster.TypeAdapter.Adapt>(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 Method2Async() + public global::System.Threading.Tasks.Task Method2Async() { var result__57677169 = _Instance.Method2Async(); return result__57677169; } [System.ComponentModel.DataAnnotations.DisplayAttribute(Name = "M3")] - public System.Threading.Tasks.Task Method3Async() + public global::System.Threading.Tasks.Task Method3Async() { var result__57684656 = _Instance.Method3Async(); return result__57684656; } - public void CreateInvokeHttpClient(int i = 5, string? appId = null, System.Collections.Generic.IReadOnlyDictionary? metadata = null, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) + public void CreateInvokeHttpClient(int i = 5, string? appId = null, global::System.Collections.Generic.IReadOnlyDictionary? metadata = null, global::System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) { int i_ = i; string? appId_ = appId; - System.Collections.Generic.IReadOnlyDictionary? metadata_ = metadata; - System.Threading.CancellationToken token_ = token; + global::System.Collections.Generic.IReadOnlyDictionary? 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.NewConfig().ConstructUsing(instance_1903550791 => new ProxyInterfaceSourceGeneratorTests.Source.HumanProxy(instance_1903550791)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1075308949 => ((ProxyInterfaceSourceGeneratorTests.Source.HumanProxy) proxy1075308949)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance2145588841 => new global::ProxyInterfaceSourceGeneratorTests.Source.HumanProxy(instance2145588841)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1567394325 => ((global::ProxyInterfaceSourceGeneratorTests.Source.HumanProxy) proxy1567394325)._Instance); } diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext.g.cs index f5c0168..a4aabf0 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientContext.g.cs @@ -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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject.g.cs index 8267135..8e04206 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject.g.cs @@ -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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext.g.cs index 3893c73..a2e828e 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext.g.cs @@ -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 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 StaticObjects { get; } + global::System.Collections.Generic.Dictionary 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(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientObject obj) where T : Microsoft.SharePoint.Client.ClientObject; + T CastTo(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 clientObject, params System.Linq.Expressions.Expression>[] retrievals) where T : Microsoft.SharePoint.Client.ClientObject; - - System.Collections.Generic.IEnumerable LoadQuery(Microsoft.SharePoint.Client.ClientObjectCollection clientObjects) where T : Microsoft.SharePoint.Client.ClientObject; - - System.Collections.Generic.IEnumerable LoadQuery(System.Linq.IQueryable clientObjects) where T : Microsoft.SharePoint.Client.ClientObject; - - - - event System.EventHandler ExecutingWebRequest; + void Load(T clientObject, params global::System.Linq.Expressions.Expression>[] retrievals) where T : Microsoft.SharePoint.Client.ClientObject; + global::System.Collections.Generic.IEnumerable LoadQuery(global::Microsoft.SharePoint.Client.ClientObjectCollection clientObjects) where T : Microsoft.SharePoint.Client.ClientObject; + global::System.Collections.Generic.IEnumerable LoadQuery(global::System.Linq.IQueryable clientObjects) where T : Microsoft.SharePoint.Client.ClientObject; } } #nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject.g.cs index 234e882..fc11b64 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.ISecurableObject.g.cs @@ -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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs index 2183d40..d393967 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.PnP.IWeb.g.cs @@ -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 DescriptionTranslations { get; set; } + global::System.Collections.Generic.IEnumerable 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 SupportedUILanguageIds { get; set; } + global::System.Collections.Generic.IEnumerable 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 TitleTranslations { get; set; } + global::System.Collections.Generic.IEnumerable 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 DoesUserHavePermissions(Microsoft.SharePoint.Client.BasePermissions permissionMask); + global::Microsoft.SharePoint.Client.ClientResult DoesUserHavePermissions(global::Microsoft.SharePoint.Client.BasePermissions permissionMask); [Microsoft.SharePoint.Client.RemoteAttribute] - Microsoft.SharePoint.Client.ClientResult GetUserEffectivePermissions(string userName); + global::Microsoft.SharePoint.Client.ClientResult GetUserEffectivePermissions(string userName); [Microsoft.SharePoint.Client.RemoteAttribute] void CreateDefaultAssociatedGroups(string userLogin, string userLogin2, string groupNameSeed); [Microsoft.SharePoint.Client.RemoteAttribute] - Microsoft.SharePoint.Client.ClientResult CreateOrganizationSharingLink(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink); + global::Microsoft.SharePoint.Client.ClientResult 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 GetSharingLinkKind(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string fileUrl); + global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkKind(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string fileUrl); [Microsoft.SharePoint.Client.RemoteAttribute] - Microsoft.SharePoint.Client.ClientResult GetSharingLinkData(string linkUrl); + global::Microsoft.SharePoint.Client.ClientResult GetSharingLinkData(string linkUrl); [Microsoft.SharePoint.Client.RemoteAttribute] - Microsoft.SharePoint.Client.ClientResult MapToIcon(string fileName, string progId, Microsoft.SharePoint.Client.Utilities.IconSize size); + global::Microsoft.SharePoint.Client.ClientResult MapToIcon(string fileName, string progId, global::Microsoft.SharePoint.Client.Utilities.IconSize size); [Microsoft.SharePoint.Client.RemoteAttribute] - Microsoft.SharePoint.Client.ClientResult GetWebUrlFromPageUrl(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string pageFullUrl); + global::Microsoft.SharePoint.Client.ClientResult 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 DoesPushNotificationSubscriberExist(System.Guid deviceAppInstanceId); + global::Microsoft.SharePoint.Client.ClientResult 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 EnsureTenantAppCatalog(string callerId); + global::Microsoft.SharePoint.Client.ClientResult 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 CreateAnonymousLink(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink); + global::Microsoft.SharePoint.Client.ClientResult CreateAnonymousLink(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink); [Microsoft.SharePoint.Client.RemoteAttribute] - Microsoft.SharePoint.Client.ClientResult CreateAnonymousLinkWithExpiration(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string url, bool isEditLink, string expirationString); + global::Microsoft.SharePoint.Client.ClientResult 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 GetSPAppContextAsStream(); + global::Microsoft.SharePoint.Client.ClientResult 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 GetDocumentLibraries(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl); + global::System.Collections.Generic.IList GetDocumentLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl); [Microsoft.SharePoint.Client.RemoteAttribute] - System.Collections.Generic.IList GetDocumentAndMediaLibraries(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl, bool includePageLibraries); + global::System.Collections.Generic.IList GetDocumentAndMediaLibraries(global::ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webFullUrl, bool includePageLibraries); [Microsoft.SharePoint.Client.RemoteAttribute] - Microsoft.SharePoint.Client.ClientResult DefaultDocumentLibraryUrl(ProxyInterfaceSourceGeneratorTests.Source.PnP.IClientRuntimeContext context, string webUrl); + global::Microsoft.SharePoint.Client.ClientResult 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 PageContextInfo(bool includeODBSettings, bool emitNavigationInfo); + global::Microsoft.SharePoint.Client.ClientResult PageContextInfo(bool includeODBSettings, bool emitNavigationInfo); [Microsoft.SharePoint.Client.RemoteAttribute] - Microsoft.SharePoint.Client.ClientResult PageContextCore(); + global::Microsoft.SharePoint.Client.ClientResult 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 GetAppInstancesByProductId(System.Guid productId); + global::Microsoft.SharePoint.Client.ClientObjectList 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 AddPlaceholderUser(string listId, string placeholderText); + global::Microsoft.SharePoint.Client.ClientResult 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 \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.TestClassInternalProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.TestClassInternalProxy.g.cs index 08fc9e0..b39e393 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.TestClassInternalProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.TestClassInternalProxy.g.cs @@ -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; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric`3Proxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric`3Proxy.g.cs new file mode 100644 index 0000000..3f6ecbc --- /dev/null +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric`3Proxy.g.cs @@ -0,0 +1,50 @@ +//---------------------------------------------------------------------------------------- +// +// 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. +// +//---------------------------------------------------------------------------------------- + +#nullable enable +using System; + +namespace ProxyInterfaceSourceGeneratorTests.Source +{ + public partial class ÜberGenericProxy : global::ProxyInterfaceSourceGeneratorTests.Source.IÜberGeneric + { + public global::ProxyInterfaceSourceGeneratorTests.Source.ÜberGeneric _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 instance) + { + _Instance = instance; + + + + } + } +} +#nullable restore \ No newline at end of file diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/System.Net.Http.HttpClientProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/System.Net.Http.HttpClientProxy.g.cs index 80b852c..37ca3af 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/System.Net.Http.HttpClientProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/System.Net.Http.HttpClientProxy.g.cs @@ -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 GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri) + public global::System.Threading.Tasks.Task 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 GetStringAsync(System.Uri? requestUri) + public global::System.Threading.Tasks.Task 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 GetStringAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 GetStringAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri) + public global::System.Threading.Tasks.Task 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 GetByteArrayAsync(System.Uri? requestUri) + public global::System.Threading.Tasks.Task 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 GetByteArrayAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 GetByteArrayAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri) + public global::System.Threading.Tasks.Task 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 GetStreamAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 GetStreamAsync(System.Uri? requestUri) + public global::System.Threading.Tasks.Task 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 GetStreamAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri) + public global::System.Threading.Tasks.Task 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 GetAsync(System.Uri? requestUri) + public global::System.Threading.Tasks.Task 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 GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpCompletionOption completionOption) + public global::System.Threading.Tasks.Task 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 GetAsync(System.Uri? requestUri, System.Net.Http.HttpCompletionOption completionOption) + public global::System.Threading.Tasks.Task 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 GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 GetAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 GetAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 GetAsync(System.Uri? requestUri, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content) + public global::System.Threading.Tasks.Task 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 PostAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content) + public global::System.Threading.Tasks.Task 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 PostAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 PostAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content) + public global::System.Threading.Tasks.Task 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 PutAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content) + public global::System.Threading.Tasks.Task 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 PutAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 PutAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content) + public global::System.Threading.Tasks.Task 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 PatchAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content) + public global::System.Threading.Tasks.Task 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 PatchAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 PatchAsync(System.Uri? requestUri, System.Net.Http.HttpContent? content, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri) + public global::System.Threading.Tasks.Task 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 DeleteAsync(System.Uri? requestUri) + public global::System.Threading.Tasks.Task 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 DeleteAsync([System.Diagnostics.CodeAnalysis.StringSyntaxAttribute("Uri")] string? requestUri, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 DeleteAsync(System.Uri? requestUri, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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 SendAsync(System.Net.Http.HttpRequestMessage request) + public global::System.Threading.Tasks.Task 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 SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) + public override global::System.Threading.Tasks.Task 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 SendAsync(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption) + public global::System.Threading.Tasks.Task 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 SendAsync(System.Net.Http.HttpRequestMessage request, System.Net.Http.HttpCompletionOption completionOption, System.Threading.CancellationToken cancellationToken) + public global::System.Threading.Tasks.Task 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; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Destination/System.Net.Http.HttpMessageInvokerProxy.g.cs b/tests/ProxyInterfaceSourceGeneratorTests/Destination/System.Net.Http.HttpMessageInvokerProxy.g.cs index 8e95486..01d18fe 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/Destination/System.Net.Http.HttpMessageInvokerProxy.g.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/Destination/System.Net.Http.HttpMessageInvokerProxy.g.cs @@ -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 SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) + public virtual global::System.Threading.Tasks.Task 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; diff --git a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.GenerateFiles_ForClassWithArray_Should_GenerateCorrectFiles.verified.txt b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.GenerateFiles_ForClassWithArray_Should_GenerateCorrectFiles.verified.txt index 6893adb..1f66b57 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.GenerateFiles_ForClassWithArray_Should_GenerateCorrectFiles.verified.txt +++ b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.GenerateFiles_ForClassWithArray_Should_GenerateCorrectFiles.verified.txt @@ -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(_Instance.Foos); set => _Instance.Foos = Mapster.TypeAdapter.Adapt(value); } - public ProxyInterfaceSourceGeneratorTests.Source.IFoo[] Foos { get => Mapster.TypeAdapter.Adapt(_Instance.Foos); set => _Instance.Foos = Mapster.TypeAdapter.Adapt(value); } - - - - public ProxyInterfaceSourceGeneratorTests.Source.IFoo[] DoSomethingAndGetAnArrayOfFoos() + public global::ProxyInterfaceSourceGeneratorTests.Source.IFoo[] DoSomethingAndGetAnArrayOfFoos() { var result_1603865878 = _Instance.DoSomethingAndGetAnArrayOfFoos(); - return Mapster.TypeAdapter.Adapt(result_1603865878); + return Mapster.TypeAdapter.Adapt(result_1603865878); } - - - - - - public FooProxy(ProxyInterfaceSourceGeneratorTests.Source.Foo instance) + public FooProxy(global::ProxyInterfaceSourceGeneratorTests.Source.Foo instance) { _Instance = instance; - Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance242969081 => new ProxyInterfaceSourceGeneratorTests.Source.FooProxy(instance242969081)); - Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy_1660896935 => ((ProxyInterfaceSourceGeneratorTests.Source.FooProxy) proxy_1660896935)._Instance); + Mapster.TypeAdapterConfig.NewConfig().ConstructUsing(instance2058774601 => new global::ProxyInterfaceSourceGeneratorTests.Source.FooProxy(instance2058774601)); + Mapster.TypeAdapterConfig.NewConfig().MapWith(proxy1662609081 => ((global::ProxyInterfaceSourceGeneratorTests.Source.FooProxy) proxy1662609081)._Instance); } diff --git a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs index d12249f..27ea67e 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs +++ b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTest.cs @@ -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() { diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Source/IÜberGeneric.cs b/tests/ProxyInterfaceSourceGeneratorTests/Source/IÜberGeneric.cs new file mode 100644 index 0000000..4e2e819 --- /dev/null +++ b/tests/ProxyInterfaceSourceGeneratorTests/Source/IÜberGeneric.cs @@ -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 + { + } +} diff --git a/tests/ProxyInterfaceSourceGeneratorTests/Source/ÜberGeneric.cs b/tests/ProxyInterfaceSourceGeneratorTests/Source/ÜberGeneric.cs new file mode 100644 index 0000000..2f914cf --- /dev/null +++ b/tests/ProxyInterfaceSourceGeneratorTests/Source/ÜberGeneric.cs @@ -0,0 +1,17 @@ +namespace ProxyInterfaceSourceGeneratorTests.Source +{ + /// + /// Fun fact, Umlaute are valid in c# + /// + /// + /// + /// + public class ÜberGeneric + { + public T1 Test(T1 value) => value; + + public KAi Test(KAi value) => value; + + public TKey Test(TKey value) => value; + } +} \ No newline at end of file