.NET 有 BITS 模块吗?

发布于 2024-08-22 09:37:03 字数 392 浏览 5 评论 0原文

我一直在研究使用 后台智能传输服务。我见过的大多数文章都说没有官方的 .NET 端口,但他们建议使用 sharpBITS。如果有必要,我会使用 SharpBITS,但我注意到所有文章都引用 .NET 1.1 和 2.0,它们似乎是在 3.0 发布之前编写的。 BITS 是添加到 3.0、3.5 中还是预计添加到 4.0 中?我尝试用 Google 搜索一下,但 BITS 这个词在编程世界中太常见了。

I have been researching in to using Background Intelligent Transfer Service. Most articles I have seen says there is no official .NET port but they recommend using sharpBITS. I will use sharpBITS if I have to but I noticed that all of the articles are referencing .NET 1.1 and 2.0, they seem to have been written before 3.0 came out. Was BITS added to 3.0, 3.5, or expected to be in 4.0? I have tried to Google around but BITS is too common of a word in the programming world.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

蓬勃野心 2024-08-29 09:37:03

否,.NET 3.5 和 .NET 4.0 不会向后台智能传输服务 (BITS) 公开托管接口。

BITS 是一种非常 Microsoft 特定的技术,他们不太可能将其集成到基类库 (BCL) 中。

话虽这么说, sharpBITS 可能是你最好的选择,我不希望它出现在 BCL 中曾经,但我可以看到它是 MS 在 Microsoft 命名空间下公开的一个单独的库(就像他们对 Sharepoint 和 SQL Server Management 等产品所做的那样)。

No, .NET 3.5 and .NET 4.0 do not expose a managed interface to the Background Intelligent Transfer Service (BITS).

BITS is a very Microsoft-specific technology, and it is highly unlikely they will integrate it into the base class libraries (BCL).

That being said, sharpBITS is probably your best bet, I wouldn't expect it to be in the BCL ever, but I could see it being a separate library that MS exposes under the Microsoft namespace (as they do with products like, Sharepoint and SQL Server Management).

鸩远一方 2024-08-29 09:37:03

我认为 .NET 中不会直接支持 BITS。
由于 .NET Core 将成为新功能的未来所在,因此仅适用于 BITS 的 Windows API 不太可能成为 .NET Framework 的一部分。

您可以在此处找到包含源代码的 BITS .NET 包装器:https://github。 com/usis-software/usis.Net.Bits

我已经实现了这个库,因为 SharpBITS 似乎不再维护,也从未进入 GibHub。

还有一个可用的 NuGet 包

I don't think that there will be support for BITS directly in .NET.
As .NET Core will be the future place for new features it is unlikely that a Windows only API for BITS will be part of the .NET Framework.

You can find a .NET wrapper for BITS including source code here: https://github.com/usis-software/usis.Net.Bits.

I've implemented this library because is seems taht sharpBITS is no longer maintained and also never made it to GibHub.

There's also a NuGet package available.

药祭#氼 2024-08-29 09:37:03

好消息!有一个全新的learn.microsoft.com 讨论使用 BITS 和 C# 的页面,以及 GitHub

该示例展示了如何枚举作业、恢复/暂停/取消以及创建新作业。

Good news! There's a brand new learn.microsoft.com page that talks about using BITS and C#, plus a brand-new C#/WPF sample on GitHub.

The sample shows how enumerate jobs, resume/pause/cancel, and make new jobs.

樱娆 2024-08-29 09:37:03

不完全是.NET,但在较新版本的 Windows powershell commandlet 中(*-BitsTransfer),其中添加了允许您 操纵 BITS 传输

Not exactly .NET but in newer versions of windows powershell commandlets (*-BitsTransfer) where added that allow you to manipulate BITS transfers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文