-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom exception type for insecure remoting
- Loading branch information
Keith Cully
committed
Nov 21, 2023
1 parent
1d76454
commit 97672b5
Showing
4 changed files
with
27 additions
and
5 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
22 changes: 22 additions & 0 deletions
22
src/Services.Remoting/InsecureRemotingUnsupportedException.cs
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. | ||
|
||
using System; | ||
|
||
namespace Microsoft.Omex.Extensions.Services.Remoting | ||
{ | ||
/// <summary> | ||
/// Specific exception type used when an attempt to create an insecure listener or insecure proxy is made. | ||
/// </summary> | ||
[Serializable] | ||
public class InsecureRemotingUnsupportedException : InvalidOperationException | ||
{ | ||
/// <summary> | ||
/// Creates an instance of <see cref="InsecureRemotingUnsupportedException"/>. | ||
/// </summary> | ||
public InsecureRemotingUnsupportedException() | ||
: base("Transport security is required for Service Fabric Remoting connections. TransportSettings must be defined in settings.xml.") | ||
{ | ||
} | ||
} | ||
} |
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