C# Class Kentico.KInspector.Modules.ProbeHelper

Provides methods useful for Kentico instance probe installation.

All the probe files must reside within ProbeData directory. The directory content is copied to the Kentico instance folder.

Make sure the content folder items have their Build Action set to "Content" and Copy to Output Directory set to "Copy Always" (because you want the target instance to compile those files, not this tool). Otherwise errors may be encountered when compiling this tool.

For ease of deployment to both web site and web application the probe file is a web form with CodeFile set in its markup and with .designer.cs file generated. But the probe helper should be able to deploy anything (e.g. handler + DLL).

Mostrar archivo Open project: Kentico/KInspector

Private Properties

Property Type Description

Public Methods

Method Description
InstallProbe ( DirectoryInfo pathToKenticoFiles ) : void

Installs the probe for Kentico instance residing in pathToKenticoFiles (e.g. C:\inetpub\wwwroot\myKenticoInstance\CMS).

UninstallProbe ( DirectoryInfo pathToKenticoFiles ) : void

Uninstalls the probe for Kentico instance residing in pathToKenticoFiles (e.g. C:\inetpub\wwwroot\myKenticoInstance\CMS).

Method Details

InstallProbe() public static method

Installs the probe for Kentico instance residing in pathToKenticoFiles (e.g. C:\inetpub\wwwroot\myKenticoInstance\CMS).
public static InstallProbe ( DirectoryInfo pathToKenticoFiles ) : void
pathToKenticoFiles System.IO.DirectoryInfo Path to Kentico instance.
return void

UninstallProbe() public static method

Uninstalls the probe for Kentico instance residing in pathToKenticoFiles (e.g. C:\inetpub\wwwroot\myKenticoInstance\CMS).
public static UninstallProbe ( DirectoryInfo pathToKenticoFiles ) : void
pathToKenticoFiles System.IO.DirectoryInfo Path to Kentico instance.
return void