Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4.3.1
with:
global-json-file: global.json
dotnet-version: 8.0.x
- name: Download RavenDB Server
run: ./tools/download-ravendb-server.ps1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4.3.1
with:
global-json-file: global.json
dotnet-version: 8.0.x
- name: Download RavenDB Server
run: ./tools/download-ravendb-server.ps1
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.400",
"version": "9.0.100",
"rollForward": "latestFeature"
},
"msbuild-sdks": {
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl.Api/IAuditCountApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

public interface IAuditCountApi
{
public Task<IList<AuditCount>> GetEndpointAuditCounts(string endpoint, CancellationToken token);
Task<IList<AuditCount>> GetEndpointAuditCounts(string endpoint, CancellationToken token);
}
}
8 changes: 5 additions & 3 deletions src/ServiceControl.Api/IConfigurationApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@

public interface IConfigurationApi
{
public Task<RootUrls> GetUrls(string baseUrl, CancellationToken cancellationToken);
public Task<object> GetConfig(CancellationToken cancellationToken);
public Task<RemoteConfiguration[]> GetRemoteConfigs(CancellationToken cancellationToken);
Task<RootUrls> GetUrls(string baseUrl, CancellationToken cancellationToken);

Task<object> GetConfig(CancellationToken cancellationToken);

Task<RemoteConfiguration[]> GetRemoteConfigs(CancellationToken cancellationToken);
}
}
2 changes: 1 addition & 1 deletion src/ServiceControl.Api/IEndpointsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

public interface IEndpointsApi
{
public Task<List<Endpoint>> GetEndpoints(CancellationToken cancellationToken);
Task<List<Endpoint>> GetEndpoints(CancellationToken cancellationToken);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ public void CustomizeMonitoringEndpoint(EndpointConfiguration endpointConfigurat

public Task ProvisionQueues(TransportSettings transportSettings, IEnumerable<string> additionalQueues)
{
QueuesCreated = new List<string>(additionalQueues)
{
QueuesCreated =
[
.. additionalQueues,
transportSettings.EndpointName,
transportSettings.ErrorQueue
};
];
return Task.CompletedTask;
}

Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl.Audit/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build image
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build
ARG TARGETARCH
WORKDIR /
ENV CI=true
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl.Audit/Infrastructure/Hosting/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public IEnumerator<string> GetEnumerator()

public List<string> ToList()
{
return new List<string>(values);
return [.. values];
}

public string[] ToArray()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Settings(string transportType = null, string persisterType = null, Loggin
{
Hostname = SettingsReader.Read(SettingsRootNamespace, "Hostname", "localhost");
Port = SettingsReader.Read(SettingsRootNamespace, "Port", 44444);
};
}

MaximumConcurrencyLevel = SettingsReader.Read<int?>(SettingsRootNamespace, "MaximumConcurrencyLevel");
ServiceControlQueueAddress = SettingsReader.Read<string>(SettingsRootNamespace, "ServiceControlQueueAddress");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ListInstancesViewModel(Func<BaseService, InstanceDetailsViewModel> instan
AddAndRemoveInstances();
}

public BindableCollection<InstanceDetailsViewModel> OrderedInstances => new BindableCollection<InstanceDetailsViewModel>(Instances.OrderBy(x => x.Name));
public BindableCollection<InstanceDetailsViewModel> OrderedInstances => [.. Instances.OrderBy(x => x.Name)];

[AlsoNotifyFor(nameof(OrderedInstances))]
IList<InstanceDetailsViewModel> Instances { get; }
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl.Config/Validation/ValidationTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ValidationTemplate(RxPropertyChanged target)

errorsChangedSubject = new Subject<DataErrorsChangedEventArgs>();
target.PropertyChanged += Validate;
properties = new HashSet<string>(target.GetType().GetProperties().Select(p => p.Name));
properties = [.. target.GetType().GetProperties().Select(p => p.Name)];
}

public IObservable<DataErrorsChangedEventArgs> ErrorsChangedObservable => errorsChangedSubject.AsObservable();
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl.Monitoring/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build image
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build
ARG TARGETARCH
WORKDIR /
ENV CI=true
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl.Monitoring/Hosting/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public IEnumerator<string> GetEnumerator()

public List<string> ToList()
{
return new List<string>(values);
return [.. values];
}

public string[] ToArray()
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build image
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build
ARG TARGETARCH
WORKDIR /
ENV CI=true
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceControl/Hosting/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public IEnumerator<string> GetEnumerator()

public List<string> ToList()
{
return new List<string>(values);
return [.. values];
}

public string[] ToArray()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ public void CheckQueueNamesAreNotTakenByAnotherInstance_ShouldSucceed()
public void CheckQueueNamesAreNotTakenByAnotherInstance_ShouldThrow()
{
var expectedError = "Some queue names specified are already assigned to another ServiceControl instance - Correct the values for ErrorLogQueue, ErrorQueue";

var newInstance = ServiceControlNewInstance.CreateWithDefaultPersistence();
{
newInstance.TransportPackage = ServiceControlCoreTransports.Find("MSMQ");
newInstance.ErrorLogQueue = "errorlog";
newInstance.ErrorQueue = "error";
newInstance.ForwardErrorMessages = true;
};

newInstance.TransportPackage = ServiceControlCoreTransports.Find("MSMQ");
newInstance.ErrorLogQueue = "errorlog";
newInstance.ErrorQueue = "error";
newInstance.ForwardErrorMessages = true;

var p = new QueueNameValidator(newInstance)
{
Expand Down