Accessing MemberService and ContentService via console application
Hello, Im struggling to find documentation online for how to access the memberservice and contentservices from a console app external to my website. I've tried this:
var students = Umbraco.Web.UmbracoContext.Current.Application.Services.MemberService.GetMembersByMemberType("Pupil");
but it just errors, How can I access these from a console application?
Accessing MemberService and ContentService via console application
Hello, Im struggling to find documentation online for how to access the memberservice and contentservices from a console app external to my website. I've tried this:
var students = Umbraco.Web.UmbracoContext.Current.Application.Services.MemberService.GetMembersByMemberType("Pupil");
but it just errors, How can I access these from a console application?
Hi Phil,
two links for you ;-)
https://our.umbraco.org/forum/developers/api-questions/61416-Use-the-Umbraco-Services-from-a-console-app
https://our.umbraco.org/forum/developers/api-questions/37981-Using-v6-API-ContentService-in-external-application
And here is a full example for using umbraco with console:
https://github.com/sitereactor/umbraco-console-example/
Hope this helps?
Best,
Sören
is working on a reply...