Ok, Here is my plugin. I try to put the logic not to add unwanted files in MetaCustomData.
Public Sub CentralEventDispatcher_Action(ByVal sender As Object, ByVal e As ActionEventArgs)
Try
'Log everything - comment this line after debugging to optimize speed.
'DataAccess.Log.WriteLogEntry("PluginProject", "Ready", conf)
If e.ActionData.Name = ActionName.ResponseFromServerReceived Then
lastResponseURI = CType(e.ActionData.Data, Net.HttpWebResponse).ResponseUri
lastResponseLastModified = (CType(e.ActionData.Data, Net.HttpWebResponse)).LastModified
End If
If e.ActionData.Name = ActionName.ReadText Then
If lastResponseURI.ToString.IndexOf(".dll", System.StringComparison.OrdinalIgnoreCase) = -1 And _
lastResponseURI.ToString.IndexOf(".css", System.StringComparison.OrdinalIgnoreCase) = -1 And _
lastResponseURI.ToString.IndexOf(".js", System.StringComparison.OrdinalIgnoreCase) = -1 And _
lastResponseURI.ToString.IndexOf(".jpg", System.StringComparison.OrdinalIgnoreCase) = -1 And _
lastResponseURI.ToString.IndexOf(".gif", System.StringComparison.OrdinalIgnoreCase) = -1 And _
lastResponseURI.ToString.IndexOf(".png", System.StringComparison.OrdinalIgnoreCase) = -1 And _
lastResponseURI.ToString.IndexOf(".xml", System.StringComparison.OrdinalIgnoreCase) = -1 And _
lastResponseURI.ToString.IndexOf(".rpt", System.StringComparison.OrdinalIgnoreCase) = -1 And _
lastResponseURI.ToString.IndexOf(".ini", System.StringComparison.OrdinalIgnoreCase) = -1 And _
lastResponseURI.ToString.IndexOf(".ssi", System.StringComparison.OrdinalIgnoreCase) = -1 And _
lastResponseURI.ToString.IndexOf(".swf", System.StringComparison.OrdinalIgnoreCase) = -1 Then
If lastResponseURI = CType(sender, Document).Uri Then
CType(e.ActionData.Data, DocumentText).MetaCustomData = lastResponseLastModified.ToShortDateString()
End If
End If
End If
Catch ex As Exception
Throw New Exception("Source Description: " & ex.Message & ControlChars.CrLf & _
"Source Trace: " & ex.StackTrace)
End Try
End Sub
thanks,
Alex
ag