Core - Remove API versioning, we have MinimumVersion to achieve the same thing

This commit is contained in:
Robert committed 2025-12-19 23:11:27 +01:00
1 parent e2cb73e327
commit 86f2426f37
184 files changed
+598 -523

No files matched your search

@@ -88,7 +88,7 @@ public abstract class RoutableScreen<TParam> : RoutableScreen, IRoutableScreen w
Expression<Func<object[], TParam>> lambda = Expression.Lambda<Func<object[], TParam>>(
Expression.Block(
new[] {parameterExpression},
[parameterExpression],
Expression.Assign(parameterExpression, Expression.New(parameterType)),
Expression.Block(propertyAssignments),
parameterExpression
@@ -44,5 +44,5 @@ public class RouteRegistration<TViewModel> : IRouterRegistration where TViewMode
public Type ViewModel => typeof(TViewModel);
/// <inheritdoc />
public List<IRouterRegistration> Children { get; set; } = new();
public List<IRouterRegistration> Children { get; set; } = [];
}
@@ -25,7 +25,7 @@ internal class RouteResolution
return AsFailure(path);
// Ensure self is a match
List<object> parameters = new();
List<object> parameters = [];
int currentSegment = 0;
foreach (RouteSegment routeSegment in registration.Route.Segments)
{
@@ -95,7 +95,7 @@ internal class RouteResolution
public object[] GetAllParameters()
{
List<object> result = new();
List<object> result = [];
if (Parameters != null)
result.AddRange(Parameters);
object[]? childParameters = Child?.GetAllParameters();
@@ -86,7 +86,7 @@ internal class Navigation
return;
// Navigate on the screen
args.SegmentParameters = resolution.Parameters ?? Array.Empty<object>();
args.SegmentParameters = resolution.Parameters ?? [];
try
{
await screen.InternalOnNavigating(args, _cts.Token);
@@ -13,7 +13,7 @@ public class NavigationArguments
Options = options;
Path = path;
RouteParameters = routeParameters;
SegmentParameters = Array.Empty<object>();
SegmentParameters = [];
}
/// <summary>
@@ -68,7 +68,7 @@ internal class Router : CorePropertyChanged, IRouter, IDisposable
public IObservable<string?> CurrentPath => _currentRouteSubject;
/// <inheritdoc />
public List<IRouterRegistration> Routes { get; } = new();
public List<IRouterRegistration> Routes { get; } = [];
/// <inheritdoc />
public async Task Navigate(string path, RouterNavigationOptions? options = null)