Public Api Equivalent for: CSContext.Current.GetCurrent<Group>()

I am in the process of moving over some legacy code and trying to update as much of the code as possible to supported APIs - 

We have some code that makes a call to the following to get the current group - is there a PublicApi equivalent for this?  

CSContext.Current.GetCurrent<Group>()
  • Not until 8.0 and then its a little different.  GetCurrent isn't in the inprocess API because it requires a url at some stage in its logic, making it more appropriate in the widget API.

    You can always Parse the url.  May not be the best but you have a group path up until an application delimiter.

    Also depending what you are doing it may be more appropriately done in a widget

Related