如何在C#中将SteamKit2.SteamApps + PICSTokensCallback转换为有意义的消息

时间:2018-06-07 17:33:16

标签: c# steam

我已经开始使用SteamKit2在C#中编码。 现在的问题是,当我执行此代码时:

Console.WriteLine("App {0} has product info => {1}", i, pics.ToString());

以前:

pics = await Apps.PICSGetProductInfo(app, null);

我无法获取产品信息,只能获得表单中的响应 “SteamKit2.AsyncJobMultiple`1 +结果集[SteamKit2.SteamApps + PICSProductInfoCallback]” 我如何将其转换为有意义的东西?

1 个答案:

答案 0 :(得分:0)

我对此API了解不多,但我怀疑您拥有的价值是回电获取产品信息,而非产品信息本身。

尝试类似:

AuthUserFile [redacted]
AuthName "Please log in: "
AuthType Basic

<Limit PUT DELETE>
    Require valid-user
</Limit>

然后添加一个像

这样的函数
    SteamClient steamClient = new SteamClient(); // you may already have this
    CallbackManager manager = new CallbackManager( steamClient );
    manager.Subscribe<SteamClient.PICSTockensCallback>(MyFunction);