Show / Hide Table of Contents

Class InstallerHelper

Inheritance
Object
InstallerHelper
Namespace: StockSharp.Installer
Assembly: StockSharp.Installer.dll
Syntax
public static class InstallerHelper : Object

Methods

CanCreateProduct(ProductContentTypes)

Declaration
public static bool CanCreateProduct(this ProductContentTypes ct)
Parameters
Type Name Description
ProductContentTypes ct
Returns
Type Description
Boolean

CanPublish(ProductContentTypes)

Declaration
public static bool CanPublish(this ProductContentTypes ct)
Parameters
Type Name Description
ProductContentTypes ct
Returns
Type Description
Boolean

CheckDirContainFiles(String)

Declaration
public static bool CheckDirContainFiles(string path)
Parameters
Type Name Description
String path
Returns
Type Description
Boolean

CheckDirContainsAnything(String)

Declaration
public static bool CheckDirContainsAnything(string path)
Parameters
Type Name Description
String path
Returns
Type Description
Boolean

CheckPathsEqual(String, String)

Compare paths.

Declaration
public static bool CheckPathsEqual(string path1, string path2)
Parameters
Type Name Description
String path1
String path2
Returns
Type Description
Boolean

CreateServices(ILogReceiver, Int64)

Initialize installer services.

Declaration
public static void CreateServices(ILogReceiver rootLogger, long thisProductId)
Parameters
Type Name Description
ILogReceiver rootLogger
Int64 thisProductId

DeinitServicesAsync(CancellationToken)

Declaration
public static Task DeinitServicesAsync(CancellationToken token)
Parameters
Type Name Description
CancellationToken token
Returns
Type Description
Task

EnumerateFiles(String, Func<FileInfo, String, Boolean>, Func<String, Boolean>)

Declaration
public static IEnumerable<(string, FileInfo)> EnumerateFiles(string directory, Func<FileInfo, string, bool> includeFile = null, Func<string, bool> includeSubdir = null)
Parameters
Type Name Description
String directory
Func<FileInfo, String, Boolean> includeFile
Func<String, Boolean> includeSubdir
Returns
Type Description
IEnumerable<(, )<String, FileInfo>>

GetCategoryName(Int64)

Declaration
public static string GetCategoryName(this long catId)
Parameters
Type Name Description
Int64 catId
Returns
Type Description
String

Increment(NuGetVersion)

Declaration
public static NuGetVersion Increment(this NuGetVersion version)
Parameters
Type Name Description
NuGet.Versioning.NuGetVersion version
Returns
Type Description
NuGet.Versioning.NuGetVersion

IsCompletedSuccessfully(Task)

Declaration
public static bool IsCompletedSuccessfully(this Task t)
Parameters
Type Name Description
Task t
Returns
Type Description
Boolean

IsConnector(ProductContentTypes)

Declaration
public static bool IsConnector(this ProductContentTypes pct)
Parameters
Type Name Description
ProductContentTypes pct
Returns
Type Description
Boolean

IsFileLocked(String)

Declaration
public static bool IsFileLocked(string path)
Parameters
Type Name Description
String path
Returns
Type Description
Boolean

IsFolderPublish(ProductContentTypes)

Declaration
public static bool IsFolderPublish(this ProductContentTypes ct)
Parameters
Type Name Description
ProductContentTypes ct
Returns
Type Description
Boolean

IsProjectPublish(ProductContentTypes)

Declaration
public static bool IsProjectPublish(this ProductContentTypes ct)
Parameters
Type Name Description
ProductContentTypes ct
Returns
Type Description
Boolean

IsValidWebLink(String)

Declaration
public static bool IsValidWebLink(this string link)
Parameters
Type Name Description
String link
Returns
Type Description
Boolean

IsWebLink(Uri)

Declaration
public static bool IsWebLink(this Uri uri)
Parameters
Type Name Description
Uri uri
Returns
Type Description
Boolean

NormalizePath(String, CultureInfo)

Normalize path for comparison.

Declaration
public static string NormalizePath(this string path, CultureInfo culture = null)
Parameters
Type Name Description
String path
CultureInfo culture
Returns
Type Description
String

NormalizePathNoLowercase(String)

Normalize path for comparison (without case change).

Declaration
public static string NormalizePathNoLowercase(this string path)
Parameters
Type Name Description
String path
Returns
Type Description
String

PackageIdEqual(String, String)

Compare package ids.

Declaration
public static bool PackageIdEqual(this string packageId, string otherPackageId)
Parameters
Type Name Description
String packageId
String otherPackageId
Returns
Type Description
Boolean

ParsePackageIdentity(String)

Declaration
public static PackageIdentity ParsePackageIdentity(this string pi)
Parameters
Type Name Description
String pi
Returns
Type Description
NuGet.Packaging.Core.PackageIdentity

SerializeContentType(ProductContentTypes)

Declaration
public static string SerializeContentType(this ProductContentTypes ct)
Parameters
Type Name Description
ProductContentTypes ct
Returns
Type Description
String

SerializePackageIdentity(PackageIdentity)

Declaration
public static string SerializePackageIdentity(this PackageIdentity pi)
Parameters
Type Name Description
NuGet.Packaging.Core.PackageIdentity pi
Returns
Type Description
String

StartServices()

Start installer services.

Declaration
public static void StartServices()

TryDeserializeContentType(String)

Declaration
public static Nullable<ProductContentTypes> TryDeserializeContentType(this string ctStr)
Parameters
Type Name Description
String ctStr
Returns
Type Description
Nullable<ProductContentTypes>

UnStubPackageId(String)

Remove stub suffix from package id.

Declaration
public static string UnStubPackageId(this string packageId)
Parameters
Type Name Description
String packageId
Returns
Type Description
String

UnwrapExceptions(Exception)

Declaration
public static IEnumerable<Exception> UnwrapExceptions(this Exception exception)
Parameters
Type Name Description
Exception exception
Returns
Type Description
IEnumerable<Exception>
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾