Base solution for your next web application
Open Closed

Using applicaiton layer from console(i.e webjobs) #1726


User avatar
0
aaronwittman created

Hi,

Is it possible to create a session in a console app ( i.e web job). I have setup the module, bootstrapper and can call my application layer correctly if i disable [AbpAuthorize] as I have login working. But, this is enabled on lower level classes that I am using and do not want to turn this off.

I have gone through the examples and also have the webapi cookie based objects working but would like to use my application objects and not url calls via WebApi. Right now i cannot find a way to create the session and not sure if this can be done under a console app (without HTTP context) or if WebApi is the only or best practice approach.

My business case is that webjobs are needing to use my database methods that reside in the application tier.

Thanks alot for any advice :)


4 Answer(s)
  • User Avatar
    0
    tonid created

    Hi,

    This question has been asked before, please see #1292

  • User Avatar
    0
    aaronwittman created

    Thanks will try it out :)

  • User Avatar
    0
    PhilWynn created

    Hi,

    The above link is broken. Any chance I could be provided with the current link to that post.

    Many thanks.

  • User Avatar
    0
    aaron created
    Support Team

    #1292

    You can change t=2732 directly in your address bar.