C# Класс 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).

Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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).

Описание методов

InstallProbe() публичный статический Метод

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.
Результат void

UninstallProbe() публичный статический Метод

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.
Результат void