首页 > 解决方案 > 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 应用程序,并且对我的代码进行最少的更改。

标签: c#.netgoogle-cloud-firestore

解决方案


推荐阅读