コード例 #1
0
 public async Task ExplicitEndpoint_BeforeTunnelConnectRequest(object sender, Titanium.Web.Proxy.EventArguments.TunnelConnectSessionEventArgs e)
 {
     await Task.Run(() =>
     {
         addSession(e);
     });
 }
コード例 #2
0
 public async Task ExplicitEndpoint_BeforeTunnelConnectResponse(object sender, Titanium.Web.Proxy.EventArguments.TunnelConnectSessionEventArgs e)
 {
     await Task.Run(() =>
     {
         if (sessionDictionary.TryGetValue(e.HttpClient, out var item))
         {
             item.Update(e);
         }
     });
 }