c# - Windows 窗体应用程序通过代理 Internet 访问 google firestore。我怎样才能做到这一点?
问题描述
我希望我的 Windows 窗体应用程序通过代理互联网访问 google firestore。我怎样才能做到这一点 ??
在我的 Windows 窗体应用程序中,当我运行此代码连接到宽带互联网时,我可以在 google firestore 数据库中插入和删除数据。
但在我的办公室里,互联网可以通过代理互联网获得。我怎样才能使我下面提到的代码通过代理互联网工作。
我正在使用以下 API 1. Google.Cloud.Storage.V1;2. Google.Cloud.Firestore;
private async Task InsertData(string project, Dictionary<string, object> user, String empid)
{
FirestoreDb db = FirestoreDb.Create(project);
DocumentReference docRef = db.Collection("employees").Document(empid);
label1.Text += "Inserting Data to Google Firestore........ \n";
WriteResult x = await docRef.SetAsync(user);
label1.Text += "Data Inserted successfully for EmpNo :- "+empid+ "\n";
}
我希望我的应用程序通过代理 Internet 访问 google firestore 应用程序,并且对我的代码进行最少的更改。
解决方案
推荐阅读
- rest - 如何在 REST API 中指定数据安全约束?
- angular - 登录后重定向到原始 URL
- jasmine - 执行“tns test android”时未定义文档
- xml - 加载后数据表绑定到 XML 需要修复
- java - 如何修复 buildFromSessionId(uuid) 中的 uuid 错误?
- html - 图像高度大小不会改变,只有宽度会改变
- db2 - 如何从存储过程中调用程序?
- ruby-on-rails - 在 Ruby on Rails 应用程序中将 JSON 数据从 API 端点保存到数据库
- excel - 根据单元格值查找行,仅将行的一部分复制到新工作表中,将行的其余部分复制到新工作表的下一行
- reinforcement-learning - 哪种强化学习算法适用于奖励连续可变且没有中间奖励的问题?