I'm using WebActivator.PreApplicationStartMethod in my current project but it seems like the OwinStartupAttribute could do the same job? Is this the proper use of the OwinStartupAttribute?
Replace WebActivator PreApplicationStartMethod with OwinStartupAttribute?
3.4k Views Asked by marcus At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in ASP.NET-MVC-5
- Getting and passing MVC Model data to AngularJS controller
- How to fix the model to correctly use the MVC Foolproof library?
- Why do I have to publish MVC project twice?
- WebApi: Reading errors
- MVC route URL not containing parameter
- Checks not showing in the correct location
- Is there another way to unit test business logic in mvc
- Perform wildcard search of all (displayed) model fields in MVC?
- Identity 2.0 After Login go to Infinite Loop asp.net mvc 5
- How to define multiple partial Owin Startup classes and have them all run their code
- How to add asp.net mvc5 to visual studio express 2012 edition?
- Get desired html element's attribute value and set to hidden field before binding in Asp.Net MVC
- Authenticate User for ASP.NET MVC from Sharepoint
- MVC5 Typeahead Feature
- Validation for EditorFor helper mvc5
Related Questions in OWIN
- Make a per-web-application object available to Web API and SignalR controllers
- .net Web Api 2 Owin authentication token expires suddenly and often on IIS 8.5
- Identity 2.0 After Login go to Infinite Loop asp.net mvc 5
- How to define multiple partial Owin Startup classes and have them all run their code
- How to use IAppBuilder-based Owin Middleware in ASP.NET 5
- How to create a Certificate Signing Request (CSR) OWIN Selfhosted
- URL Rewrite Module (IIS) not working with OWIN Middleware hosted on IIS
- Integrating social networks authentication. Asp.Net MVC
- Owin and switch user
- How to store session data using Owin hosting?
- MVC5 Login to custom Database
- OWIN Authentication Server for multiple applications
- Owin Websockets - Understanding IOwinContext and WebSocketAccept
- Web API 2 action parameter becomes null after enabling OpenId Authentication
- Microsoft.AspNet.Identity.Owin.OwinContextExtensions doesn't seem to work
Related Questions in WEBACTIVATOR
- Why does Azure CloudConfigurationManager.GetSetting return null
- ASP.NET MVC 4 Website won't start - Could not load type 'System.Reflection.AssemblyMetadataAttribute'
- What's the proper way to configure Ninject for an MVC3 application?
- Ninject and MVC3: Dependency injection to action filters
- Define an initialization order of WebActivator.PreApplicationStartMethod classes
- NinjectMVC3's WebActivator.PreApplicationStartMethod assembly attribute causing warnings in my view source editors
- Webactivator doesn't run on IIS 7
- Ninject into a Webactivator invoked class
- IIS WebActivator does not run on IIS 10
- Error in downloading WebActivator with NuGet
- Bootstrap a Windows Forms project from another assembly
- Install-Package : Unable to find package 'WebActivator'
- How to resolve a type in global.asax with Unity.AspNet.WebApi
- Replace WebActivator PreApplicationStartMethod with OwinStartupAttribute?
- Capturing ASP.NET MVC Errors and WebActivator
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
PreApplicationStartMethodAttributeallows you to run some code early in the ASP.NET pipeline. ASP.NET requests are handled by the IIS pipeline.Owin middleware is designed to run in a server-agnostic pipeline.
You could host owin middleware in a non-IIS environment, basically.
If you want to run Owin through the IIS pipeline you have to install and use
Owin.Host.SystemWeb:and it seems that SystemWeb uses PreApplicationStartMethod to hook into the application startup.
So, I guess, there not much difference at the moment.
I would stick to Owin Startup considering things might change in the future.
I have found a great explanation here and these articles are worth reading.