Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • AnandBhopale 54 posts 172 karma points
    May 25, 2021 @ 10:42
    AnandBhopale
    0

    Moving Owin Startup class to seperate class library project

    Dear All,

    I have implemented Owin startup class which has combination of frontend and BackOffice authentication with Azure AD.

    I don't want to repeat the logic and hence to make re-usable code I want to move the classes to separate class project.

    Is it possible to move owin startup class to separate class library object ? and load it as dependency injection or something else ?

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    May 25, 2021 @ 11:38
    Søren Gregersen
    1

    Hi Anand,

    The startup class is created as part of the application, to configure the app via code.

    I would suggest either create a "base startup"-class that you can inherit from, or more commonly create extension methods that you call in your startup to configure your app as needed.

    HTH :)

Please Sign in or register to post replies

Write your reply to:

Draft