public void CreateRemoteUser(string targetQueueFullName, string certificateBinaryData) { if (string.IsNullOrWhiteSpace(CurrentServer)) { throw new InvalidOperationException(ERROR_SERVER_IS_NOT_DEFINED); } Guid targetBroker = SqlScripts.GetBrokerId(targetQueueFullName); SqlScripts.ExecuteScript(ConnectionString, SqlScripts.CreateRemoteUserScript(targetBroker, certificateBinaryData)); }