You are here: Symbol Reference
Symbol Reference
> Ofcas.Lk.Api.Client.Core Namespace > Classes > ServiceProxyBase<TService, TCoreObject> Class > ServiceProxyBase Constructor > ServiceProxyBase<TService, TCoreObject>.ServiceProxyBase Constructor (string, ushort, string)
ServiceProxyBase<TService, TCoreObject>.ServiceProxyBase Constructor (string, ushort, string)
Close
Ofcas.Lk.Api.Client - Version 3.0
ServiceProxyBase<TService, TCoreObject>.ServiceProxyBase Constructor (string, ushort, string)

Constructs a named pipe connected ServiceProxy to LK based on a given launcher application path.

Syntax
C#
protected ServiceProxyBase(string launcherPath, ushort tcpPort, string arguments = "");
Parameters
Description
string launcherPath
Expects a valid filepath to the launcher application which is then called on Start to initiate the backend service initialization. The launcher application file is the app one opens to start LogiKal regularly e.g.: Winstart.exe, LogiKalStarter.exe
ushort tcpPort
The desired tcpPort the backend service will try to listen on.
string arguments = ""
The command line parameters passed down to the launcher application during Start.

Please make sure that the windows user has rights to open up ports. Since the backend service will be spawned by the current process it should be sufficient if the current process itself is running with elevated privileges.

Copyright © 2020. All rights reserved.