NServiceBus.RoutingSettings.ThrowOnAddress C# (CSharp) Method

ThrowOnAddress() static private method

static private ThrowOnAddress ( string destination ) : void
destination string
return void
        static void ThrowOnAddress(string destination)
        {
            if (destination.Contains("@"))
            {
                throw new ArgumentException($"A logical endpoint name should not contain '@', but received '{destination}'. To specify an endpoint's address, use the instance mapping file for the MSMQ transport, or refer to the routing documentation.");
            }
        }
    }