dolittle/DotNET.SDK

View on GitHub
Source/Services/ReverseCallClientAlreadyCalledConnect.cs

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
// 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 <see cref="ReverseCallClient{TClientMessage, TServerMessage, TConnectArguments, TConnectResponse, TRequest, TResponse}.Connect(TConnectArguments, System.Threading.CancellationToken)" />
/// is called more than once.
/// </summary>
public class ReverseCallClientAlreadyCalledConnect : Exception
{
    /// <summary>
    /// Initializes a new instance of the <see cref="ReverseCallClientAlreadyCalledConnect"/> class.
    /// </summary>
    public ReverseCallClientAlreadyCalledConnect()
        : base("Reverse Call Client can only connect once")
    {
    }
}