Jump to content

Why is exchangeContext deprecated and what is a better way?


Recommended Posts

Posted

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.

Posted
10 minutes ago, 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.

 

It's marked for internal use only. 

It's fine to use it though.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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