Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. ASP.NET/C# question

ASP.NET/C# question

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharpasp-netcomsysadmin
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I have a server that accepts a socket connections and accepts authentication requests in a specific protocol. I want to use this for an ASP.NET authentication. How can I make my ASP.NET app maintain a single connection to this auth server and send authentication requests to it? I mean a COM object does not seem to be the right way anymore. What is the preferred .NET way of implementing this? Thomas

    C 1 Reply Last reply
    0
    • L Lost User

      I have a server that accepts a socket connections and accepts authentication requests in a specific protocol. I want to use this for an ASP.NET authentication. How can I make my ASP.NET app maintain a single connection to this auth server and send authentication requests to it? I mean a COM object does not seem to be the right way anymore. What is the preferred .NET way of implementing this? Thomas

      C Offline
      C Offline
      Christian Tratz
      wrote on last edited by
      #2

      I guess the "proper" .NET way of doing this is to write a class that takes the credentials and performs the authentication against the server. You create this object then once and store it in the Application context. But beware you better build this object with sound multithreading capabilities, otherwise this might become a severe performance bottleneck. --Chris

      L 1 Reply Last reply
      0
      • C Christian Tratz

        I guess the "proper" .NET way of doing this is to write a class that takes the credentials and performs the authentication against the server. You create this object then once and store it in the Application context. But beware you better build this object with sound multithreading capabilities, otherwise this might become a severe performance bottleneck. --Chris

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        So, what you suggest is that I create the class and initialize it on Application Start and clean it up when the Application quits (I am so new to .NET that I do not know the event names). ok.. So this class would create multiple threads that maintain the session with my authentication server. Sounds fine. Now I have to go about designing it. Thank you Thomas

        C 1 Reply Last reply
        0
        • L Lost User

          So, what you suggest is that I create the class and initialize it on Application Start and clean it up when the Application quits (I am so new to .NET that I do not know the event names). ok.. So this class would create multiple threads that maintain the session with my authentication server. Sounds fine. Now I have to go about designing it. Thank you Thomas

          C Offline
          C Offline
          Christian Tratz
          wrote on last edited by
          #4

          Well with multithreaded I meant: I can handle multiple requests at the same time. Not that it creates multiple threads itself. Think of 50 users hitting your page concurrently. It would be bad if all had to queue up to be authenticated one after another.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups