Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 谷歌驱动器文件观看webhook_C#_File_Watch_Drive - Fatal编程技术网

C# 谷歌驱动器文件观看webhook

C# 谷歌驱动器文件观看webhook,c#,file,watch,drive,C#,File,Watch,Drive,我们的Windows 2012服务器中有Google Drive webhook通知系统,是用C#开发的 我们使用Google.api.Drive.v3.dll库v。1.25.0.862. 请求通过文件激活webhook功能/观看服务正常工作。 此服务在文件夹而不是文件中激活通知。FolderId是函数参数 将文件放入文件夹后,驱动器发出的Webhook通知也能正常工作,但不超过5分钟 从激活。在此之后,来自驱动器的通知不工作,我们没有收到“更新”消息 通道中的过期时间为6小时,我们将在“同步”

我们的Windows 2012服务器中有Google Drive webhook通知系统,是用C#开发的

我们使用Google.api.Drive.v3.dll库v。1.25.0.862. 请求通过文件激活webhook功能/观看服务正常工作。 此服务在文件夹而不是文件中激活通知。FolderId是函数参数

将文件放入文件夹后,驱动器发出的Webhook通知也能正常工作,但不超过5分钟 从激活。在此之后,来自驱动器的通知不工作,我们没有收到“更新”消息

通道中的过期时间为6小时,我们将在“同步”消息中收到确认信息 以及“更新”。例:有效期:2019年12月12日星期四16:35:48 GMT


感谢您的回复。

您需要查看连接是否已关闭。从cmd.exe>Netstat-a,它将给出UDP和TCP连接的状态。由于“保持活动”选项,connecton可能正在关闭,当未收到任何消息时,连接正在关闭。解决方案是在客户端连接时启用保持活动。您需要查看连接是否关闭。从cmd.exe>Netstat-a,它将给出UDP和TCP连接的状态。由于“保持活动”选项,connecton可能正在关闭,当未收到任何消息时,连接正在关闭。解决方案是在客户端连接时启用保持活动状态。