Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macros.ApplyMacroToTicketAsync spawns lots of new threads #90

Closed
MikeCodesDotNET opened this issue Jul 19, 2014 · 1 comment
Closed

Comments

@MikeCodesDotNET
Copy link

I'm wondering if anyone else is having / seeing an oddity when calling the following method:

_api.Macros.ApplyMacroToTicketAsync(ticketId, macroId); 

I stopped debugging once I hit 200 new threads as something was clearly going wrong.

Is anyone else able to reproduce this?

@MikeCodesDotNET
Copy link
Author

So I've done a little investigation to see if its an issue in my code-base or the library and so far I'm thinking it might be my App causing an issue. When I run the following unit test again the Macro api it appears to work.

        [Test]
        public async void CanApplyMacroAsync()
        {
            var all = await api.Macros.GetAllMacrosAsync();

            var tickets = await api.Tickets.GetAllTicketsAsync();

            var response = await api.Macros.ApplyMacroToTicketAsync((long)tickets.Tickets[0].Id, (long)all.Macros[0].Id);
            Assert.True(response != null);
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant