コード例 #1
0
 public void OnBeforeUnload()
 {
     SerializableHelper.SerializeRuleList(myFreeHttpWindow.RequestRuleListView, myFreeHttpWindow.ResponseRuleListView);
     SerializableHelper.SerializeData <FiddlerModificSettingInfo>(myFreeHttpWindow.ModificSettingInfo, "FreeHttp\\FreeHttpSetting.xml");
     SerializableHelper.SerializeContractData <ActuatorStaticDataCollection>(myFreeHttpWindow.StaticDataCollection, "FreeHttp\\FreeHttpStaticDataCollection.xml");
     if (isInFreeHttpTab)
     {
         operationReportService.OutOperation(DateTime.Now, myFreeHttpWindow.RequestRuleListView.Items.Count, myFreeHttpWindow.ResponseRuleListView.Items.Count);
     }
     if (operationReportService.HasAnyOperation)
     {
         operationReportService.FiddlerRequestChangeRuleList  = myFreeHttpWindow.FiddlerRequestChangeList;
         operationReportService.FiddlerResponseChangeRuleList = myFreeHttpWindow.FiddlerResponseChangeList;
         operationReportService.StartReportThread();
     }
 }
コード例 #2
0
        public void OnBeforeUnload()
        {
            SerializableHelper.SerializeRuleList(myFreeHttpWindow.RequestRuleListView, myFreeHttpWindow.ResponseRuleListView);
            SerializableHelper.SerializeData <FiddlerModificSettingInfo>(myFreeHttpWindow.ModificSettingInfo, "FreeHttp\\FreeHttpSetting.xml");
            SerializableHelper.SerializeContractData <ActuatorStaticDataCollection>(myFreeHttpWindow.StaticDataCollection, "FreeHttp\\FreeHttpStaticDataCollection.xml");
            SerializableHelper.SerializeContractData <FiddlerRuleGroup>(myFreeHttpWindow.ModificRuleGroup, "FreeHttp\\FreeHttpModificRuleGroup.xml");

            if (isInFreeHttpTab)
            {
                operationReportService.OutOperation(DateTime.Now, myFreeHttpWindow.RequestRuleListView.Items.Count, myFreeHttpWindow.ResponseRuleListView.Items.Count);
            }
            if (operationReportService.HasAnyOperation && IsSkipConnectTunnels)
            {
                operationReportService.StaticDataCollection          = myFreeHttpWindow.StaticDataCollection.IsEmpty? null: myFreeHttpWindow.StaticDataCollection;
                operationReportService.RuleGroup                     = myFreeHttpWindow.ModificRuleGroup.IsEmpty ? null : myFreeHttpWindow.ModificRuleGroup;
                operationReportService.FiddlerRequestChangeRuleList  = myFreeHttpWindow.FiddlerRequestChangeList;
                operationReportService.FiddlerResponseChangeRuleList = myFreeHttpWindow.FiddlerResponseChangeList;
                operationReportService.StartReportThread();
            }
            upgradeService.TrySilentUpgrade();
        }
コード例 #3
0
ファイル: FiddlerFreeHttp.cs プロジェクト: yesnomore/FreeHttp
 public void OnBeforeUnload()
 {
     SerializableHelper.SerializeRuleList(myFreeHttpWindow.RequestRuleListView, myFreeHttpWindow.ResponseRuleListView);
     SerializableHelper.SerializeData <FiddlerModificSettingInfo>(myFreeHttpWindow.ModificSettingInfo, "FreeHttp\\FreeHttpSetting.xml");
     SerializableHelper.SerializeContractData <ActuatorStaticDataCollection>(myFreeHttpWindow.StaticDataCollection, "FreeHttp\\FreeHttpStaticDataCollection.xml");
 }