Skip to content

Commit 40e0258

Browse files
authored
record type
1 parent 5ea391c commit 40e0258

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/ServiceControl.Audit.Persistence.RavenDB/LicenseStatusCheck.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ namespace ServiceControl.Audit.Persistence.RavenDB;
88

99
static class LicenseStatusCheck
1010
{
11-
class LicenseStatusFragment
12-
{
13-
public string Id { get; set; }
14-
public string LicensedTo { get; set; }
15-
public string Status { get; set; }
16-
public bool Expired { get; set; }
17-
}
11+
record LicenseStatusFragment(string Id, string LicensedTo, string Status, bool Expired);
1812

1913
public static async Task WaitForLicenseOrThrow(DatabaseConfiguration configuration, CancellationToken cancellationToken)
2014
{

src/ServiceControl.Persistence.RavenDB/LicenseStatusCheck.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ namespace ServiceControl.Persistence.RavenDB;
88

99
static class LicenseStatusCheck
1010
{
11-
class LicenseStatusFragment
12-
{
13-
public string Id { get; set; }
14-
public string LicensedTo { get; set; }
15-
public string Status { get; set; }
16-
public bool Expired { get; set; }
17-
}
11+
record LicenseStatusFragment(string Id, string LicensedTo, string Status, bool Expired);
1812

1913
public static async Task WaitForLicenseOrThrow(RavenPersisterSettings configuration, CancellationToken cancellationToken)
2014
{

0 commit comments

Comments
 (0)