# Mastership.Request(iMastershipResource) is obsolete

**URL:** <https://tech-community.robotics.abb.com/t/mastership-request-imastershipresource-is-obsolete/9361>\
**Category:** Developer Tools\
**Created:** [March 5, 2020, 10:09am UTC](https://tech-community.robotics.abb.com/t/mastership-request-imastershipresource-is-obsolete/9361 "2020-03-05T10:09:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidmaynard100](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@davidmaynard100](https://tech-community.robotics.abb.com/u/davidmaynard100)\
**Post date:** [March 5, 2020, 10:09am UTC](https://tech-community.robotics.abb.com/t/mastership-request-imastershipresource-is-obsolete/9361/1 "2020-03-05T10:09:49Z")

</div>

Hi

In the latest PC SDK, I have a warning that “Mastership.Request(iMastershipResource)” is obsolete and should be replaced with “Request(iMastershipResourceController)”.

My existing code is

public static Controller rpdController

using (Mastership m = Mastership.Request(rpdController.Rapid))  
{  
rpdTask.Start();  
}

I’m unsure of how to replace this code with the new version and an internet search comes-up with nothing (so far :).

Thanks  
David

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [March 5, 2020, 5:35pm UTC](https://tech-community.robotics.abb.com/t/mastership-request-imastershipresource-is-obsolete/9361/2 "2020-03-05T17:35:44Z")

</div>

Hello,  
I don’t have last PS SDK to test with it, but in its PC\_SDK\_Reference\_Documentation.chm

ABB.Robotics.Controllers. Controller

is:

```auto
public sealed class Controller : SDKBase, 
	IController, IMastershipResourceController, IMastershipResource

```

Can you check it in VisualStudio?

---

<div class="post-metadata">

**Author:** ![davidmaynard100](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@davidmaynard100](https://tech-community.robotics.abb.com/u/davidmaynard100)\
**Post date:** [March 5, 2020, 10:49pm UTC](https://tech-community.robotics.abb.com/t/mastership-request-imastershipresource-is-obsolete/9361/3 "2020-03-05T22:49:22Z")

</div>

Thanks, yes I can view it in VS Object Browser but am stuck with the code changes I need to make.

---

<div class="post-metadata">

**Author:** ![DenisFR](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DenisFR](https://tech-community.robotics.abb.com/u/DenisFR)\
**Post date:** [March 6, 2020, 9:42am UTC](https://tech-community.robotics.abb.com/t/mastership-request-imastershipresource-is-obsolete/9361/4 "2020-03-06T09:42:35Z")

</div>

Hello,  
Does this works?  
using (Mastership m = Mastership.Request((iMastershipResourceController)rpdController.Rapid))

---

<div class="post-metadata">

**Author:** ![davidmaynard100](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@davidmaynard100](https://tech-community.robotics.abb.com/u/davidmaynard100)\
**Post date:** [March 8, 2020, 3:09am UTC](https://tech-community.robotics.abb.com/t/mastership-request-imastershipresource-is-obsolete/9361/5 "2020-03-08T03:09:26Z")

</div>

Hi again, I tried this but it didn’t work.

Thanks  
David

---

<div class="post-metadata">

**Author:** ![Micky](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Micky](https://tech-community.robotics.abb.com/u/Micky)\
**Post date:** [March 12, 2020, 11:54am UTC](https://tech-community.robotics.abb.com/t/mastership-request-imastershipresource-is-obsolete/9361/6 "2020-03-12T11:54:22Z")

</div>

Hello,

please try the following:

```auto
using (Mastership m = Mastership.Request(rpdController))

```

---

<div class="post-metadata">

**Author:** ![davidmaynard100](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@davidmaynard100](https://tech-community.robotics.abb.com/u/davidmaynard100)\
**Post date:** [May 28, 2021, 1:46am UTC](https://tech-community.robotics.abb.com/t/mastership-request-imastershipresource-is-obsolete/9361/7 "2021-05-28T01:46:10Z")

</div>

Hi Micky

Thank you very much, that worked.  
I only just revisited this issue since it first arose last year.

Regards  
David

---

<div class="post-metadata">

**Author:** ![Nils\_Olofsson](https://avatars.discourse-cdn.com/v4/letter/n/e495f1/32.png) [@Nils\_Olofsson](https://tech-community.robotics.abb.com/u/Nils_Olofsson)\
**Post date:** [May 28, 2021, 12:47pm UTC](https://tech-community.robotics.abb.com/t/mastership-request-imastershipresource-is-obsolete/9361/8 "2021-05-28T12:47:56Z")

</div>

Hello,  
Just moved the thread into Developer Tools section so it’s easier to find if someone has similar problem
