Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Console app and IAbpSession #1295


User avatar
0
morindo created

Hi,

I'm building a console app that will use my application services, core services and repositories to insert large amount of data into the database and Azure table storage. I would like to call the services directly, like a client/server app, and I don't want to do remote Web Api calls. I've looked at these samples, AbpWpfDemo and AbpEfConsoleApp but none of these are using authentication/authorization.

I would like to impersonate the host admin. I can't figure out how to do it.

Thank you,


1 Answer(s)
  • User Avatar
    0
    morindo created

    Ok, I found an example of an IAbpSession implementation for a console app.

    Please see: [https://github.com/aspnetzero/aspnet-zero-samples/tree/master/PhoneBook/src/Acme.PhoneBook.ConsoleApp])