How to create an asynchronous method

前端 未结 8 2209
离开以前
离开以前 2020-12-22 20:18

I have simple method in my C# app, it picks file from FTP server and parses it and stores the data in DB. I want it to be asynchronous, so that user perform other operations

8条回答
  •  情歌与酒
    2020-12-22 20:46

    Here are two links about threading in C#

    • Threading in C#
    • Multi-threading in .NET: Introduction and suggestions

    I'd start to read about the BackgroundWorker class

提交回复
热议问题