We recently upgraded our project to Sitecore9 initial release from 7.2. We were re-compiling our code including latest Sitecore.Kernel. We got this error:
error CS0117: 'Factory' does not contain a definition for 'GetDomain'
for below code:
var domain = Sitecore.Configuration.Factory.GetDomain("extranet");
var allUsers = domain.getUsers();
There is no GetDomain
function in Configuration.Factory
. I think it got replaced by GetDomainMap
. But that doesn't have getUsers()
function. Can someone help us how to resolve this?