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. Working with AsyncOperations

Working with AsyncOperations

Scheduled Pinned Locked Moved .NET (Core and Framework)
tutorialcsharpcomregexquestion
1 Posts 1 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.
  • J Offline
    J Offline
    Jeroen De Dauw
    wrote on last edited by
    #1

    Hey, I'm working on a .Net library for segmented downloads. I have a Download class and a Segment class. The download class creates a thread for each download, from which threads for each segment are spawned. I've done this walk through[^], but am having troubles implementing the same pattern for my library. I don't know how to work with the userStateToLifetime HybridDictionary with async operations in my case, since in contradiction to the example, there are two 'levels' of tasks in my case (Downloads and Segments). Important to note is that the Download class is set up for ONE download, not multiple. So what should I do, create one HybridDictionary that holds async operations for the segments, create one that holds both the segments and the download, or two; one holding the segments and one holding the download? This is my first real implementation of this pattern, so if you think I'm missing some important understanding of it, please refer me to the relevant documentation :) Cheers

    Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!

    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