-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.NET 8 upgrade and convert to primary ctors (#9)
* .NET 8 upgrade and convert to primary ctors * Use .NET 8 in build pipeline
- Loading branch information
Showing
30 changed files
with
144 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
namespace AzureSearchEmulator.Indexing; | ||
|
||
public class DocumentNotFoundException : Exception | ||
{ | ||
public DocumentNotFoundException() | ||
: base("The specified document was not found") | ||
{ | ||
} | ||
} | ||
public class DocumentNotFoundException() : Exception("The specified document was not found"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,17 @@ | ||
namespace AzureSearchEmulator.Indexing; | ||
|
||
public class IndexingResult | ||
public class IndexingResult(string key, string? errorMessage, bool status, int statusCode) | ||
{ | ||
public IndexingResult(string key, bool status, int statusCode) | ||
: this(key, null, status, statusCode) | ||
{ | ||
Key = key; | ||
Status = status; | ||
StatusCode = statusCode; | ||
} | ||
|
||
public IndexingResult(string key, string? errorMessage, bool status, int statusCode) | ||
{ | ||
Key = key; | ||
ErrorMessage = errorMessage; | ||
Status = status; | ||
StatusCode = statusCode; | ||
} | ||
|
||
public string Key { get; } | ||
public string Key { get; } = key; | ||
|
||
public string? ErrorMessage { get; } | ||
public string? ErrorMessage { get; } = errorMessage; | ||
|
||
public bool Status { get; } | ||
public bool Status { get; } = status; | ||
|
||
public int StatusCode { get; } | ||
} | ||
public int StatusCode { get; } = statusCode; | ||
} |
Oops, something went wrong.