Table of Contents

Class AppPackageProtocol

Namespace
Skyline.AppInstaller
Assembly
Skyline.DataMiner.Core.AppPackageCreator.dll

Represents a protocol package. Use an instance of AppPackageProtocol.AppPackageProtocolBuilder to create this.

public class AppPackageProtocol : IAppPackageProtocol, IAppPackageAssemblyReferencer
Inheritance
AppPackageProtocol
Implements
Extension Methods

Examples

The following example creates a .dmprotocol package with an alarm template, trend template and a custom assembly.

var builder = new AppPackageProtocol.AppPackageProtocolBuilder("<protocolName>", "<protocolVersion>", "<protocolXmlFilePath>");

var package = builder.WithAlarmTemplate("<alarmTemplateFilePath>", true) .WithTrendTemplate("<trendTemplateFilePath>", true) .WithAssembly("<assemblyFilePath>", @"C:\Skyline DataMiner\ProtocolScripts\DllImport") .Build();

package.CreatePackage("<dmprotocolFilePath>");

Properties

AlarmTemplates

Gets the alarm templates included in this protocol package.

Assemblies

Gets the assemblies included in this protocol package.

HelpFiles

Gets the help files included in this protocol package.

InformationTemplates

Gets the information templates included in this protocol package.

Name

Gets the name of the protocol.

ProtocolContent

Gets the protocol content.

ProtocolPath

Gets the path to the protocol file.

TrendTemplates

Gets the trend templates included in this protocol package.

Version

Gets the version of this protocol.

Visios

Gets the Visio files included in this protocol package.

Methods

CreatePackage()

Creates the protocol package and returns a byte array containing the package.

CreatePackage(string)

Creates the protocol package and saves it to the specified destination file path.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Returns the hash code for this object.