Do I need to dispose methods from other Controllers?
I have a WebAPI with numerous controllers and I want to reference a <NonAction()> function contained in one of them.
Right now I'm just using this (called from an unrelated class):
Dim conCon As New ContactController Dim return = conCon.GetContact(123)
Is there any benefit to disposing of "conCon" by wrapping it in Using block or manually Disposing of it? I usually dispose everything I can but to be honest I've never really even thought to dispose of references to other controllers... I'm aware I could avoid this altogether by moving the function to different class or module, but that just skirts around the question.
0 comments:
Post a Comment