-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from dolittle/services-specifications
Services specifications
- Loading branch information
Showing
36 changed files
with
1,244 additions
and
307 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,21 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
|
||
namespace Dolittle.SDK.Services | ||
{ | ||
/// <summary> | ||
/// Exception that gets thrown when the server does not send a connect response message as the first message while performing a reverse call. | ||
/// </summary> | ||
public class DidNotReceiveConnectResponse : Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="DidNotReceiveConnectResponse"/> class. | ||
/// </summary> | ||
public DidNotReceiveConnectResponse() | ||
: base("The server did not respond with a connect response message as the first message.") | ||
{ | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
|
||
namespace Dolittle.SDK.Services | ||
{ | ||
/// <summary> | ||
/// Exception that gets thrown when the server does not send a ping within the specified ping interval on an open reverse call. | ||
/// </summary> | ||
public class PingTimedOut : Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PingTimedOut"/> class. | ||
/// </summary> | ||
/// <param name="timeSpan">The interval which the client asked the server to use between ping messages.</param> | ||
public PingTimedOut(TimeSpan timeSpan) | ||
: base($"Timed out while waiting for a ping from the server. Expected a ping every {timeSpan.TotalSeconds} seconds.") | ||
{ | ||
} | ||
} | ||
} |
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
Oops, something went wrong.