Jump to content

Why is exchangeContext deprecated and what is a better way?


Nebulae

Recommended Posts

Hey,

 

so as I was making my script I realized that the exchangeContext method is deprecated I wanted to know why it's deprecated and if there is a cleaner way to achieve the same result. I know I can pass the MethodProvider from my main class into my other classes and use it that way but I was wondering if there was a cleaner way that doesn't involve cramming the constructor with stuff.

Link to comment
Share on other sites

  On 9/16/2017 at 2:12 PM, Nebulae said:

Hey,

 

so as I was making my script I realized that the exchangeContext method is deprecated I wanted to know why it's deprecated and if there is a cleaner way to achieve the same result. I know I can pass the MethodProvider from my main class into my other classes and use it that way but I was wondering if there was a cleaner way that doesn't involve cramming the constructor with stuff.

Expand  

 

It's marked for internal use only. 

It's fine to use it though.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...