Table of Contents

Class InstallerHelper

Namespace
StockSharp.Installer
Assembly
StockSharp.Installer.dll
public static class InstallerHelper
Inheritance
InstallerHelper
Inherited Members

Methods

CanPublish(ProductContentTypes2)

public static bool CanPublish(this ProductContentTypes2 ct)

Parameters

ct ProductContentTypes2

Returns

bool

CheckDirContainFiles(string)

public static bool CheckDirContainFiles(string path)

Parameters

path string

Returns

bool

CheckDirContainsAnything(string)

public static bool CheckDirContainsAnything(string path)

Parameters

path string

Returns

bool

CheckPathsEqual(string, string)

Compare paths.

public static bool CheckPathsEqual(string path1, string path2)

Parameters

path1 string
path2 string

Returns

bool

CreateServices(ILogReceiver, bool)

Initialize installer services.

public static void CreateServices(ILogReceiver rootLogger, bool isConsole)

Parameters

rootLogger ILogReceiver
isConsole bool

DeinitServicesAsync()

Deinitialize installer services.

public static Task DeinitServicesAsync()

Returns

Task

EnumerateFiles(string, Func<FileInfo, string, bool>, Func<string, bool>)

public static IEnumerable<(string subdir, FileInfo file)> EnumerateFiles(string directory, Func<FileInfo, string, bool> includeFile = null, Func<string, bool> includeSubdir = null)

Parameters

directory string
includeFile Func<FileInfo, string, bool>
includeSubdir Func<string, bool>

Returns

IEnumerable<(string subdir, FileInfo file)>

GetCategoryName(long, long)

public static string GetCategoryName(this long catId, long domainId)

Parameters

catId long
domainId long

Returns

string

Increment(NuGetVersion)

public static NuGetVersion Increment(this NuGetVersion version)

Parameters

version NuGetVersion

Returns

NuGetVersion

IsDesignerSchema(ProductContentTypes2)

public static bool IsDesignerSchema(this ProductContentTypes2 ct)

Parameters

ct ProductContentTypes2

Returns

bool

IsFileLocked(string)

public static bool IsFileLocked(string path)

Parameters

path string

Returns

bool

IsFolderPublish(ProductContentTypes2)

public static bool IsFolderPublish(this ProductContentTypes2 ct)

Parameters

ct ProductContentTypes2

Returns

bool

IsProjectPublish(ProductContentTypes2)

public static bool IsProjectPublish(this ProductContentTypes2 ct)

Parameters

ct ProductContentTypes2

Returns

bool
public static bool IsValidWebLink(this string link)

Parameters

link string

Returns

bool
public static bool IsWebLink(this Uri uri)

Parameters

uri Uri

Returns

bool

NormalizePath(string, CultureInfo)

Normalize path for comparison.

public static string NormalizePath(this string path, CultureInfo culture = null)

Parameters

path string
culture CultureInfo

Returns

string

NormalizePathNoLowercase(string)

Normalize path for comparison (without case change).

public static string NormalizePathNoLowercase(this string path)

Parameters

path string

Returns

string

PackageIdEqual(string, string)

Compare package ids.

public static bool PackageIdEqual(this string packageId, string otherPackageId)

Parameters

packageId string
otherPackageId string

Returns

bool

ParsePackageIdentity(string)

public static PackageIdentity ParsePackageIdentity(this string pi)

Parameters

pi string

Returns

PackageIdentity

SerializePackageIdentity(PackageIdentity)

public static string SerializePackageIdentity(this PackageIdentity pi)

Parameters

pi PackageIdentity

Returns

string

StartServices()

Start installer services.

public static void StartServices()

UnStubPackageId(string)

Remove stub suffix from package id.

public static string UnStubPackageId(this string packageId)

Parameters

packageId string

Returns

string

UnwrapExceptions(Exception)

public static IEnumerable<Exception> UnwrapExceptions(this Exception exception)

Parameters

exception Exception

Returns

IEnumerable<Exception>