mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Core: place the DataCenterIPVersion as first optional parameter
It's the most important one so it should be the first.
This commit is contained in:
parent
501ebb936d
commit
73313ae199
|
|
@ -51,8 +51,11 @@ namespace TgSharp.Core
|
|||
/// <param name="handler">A delegate to invoke when a connection is needed and that will return a TcpClient that will be used to connect</param>
|
||||
/// <param name="dcIpVersion">Indicates the preferred IpAddress version to use to connect to a Telegram server</param>
|
||||
public TelegramClient(int apiId, string apiHash,
|
||||
ISessionStore store = null, string sessionUserId = "session", TcpClientConnectionHandler handler = null,
|
||||
DataCenterIPVersion dcIpVersion = DataCenterIPVersion.Default)
|
||||
DataCenterIPVersion dcIpVersion = DataCenterIPVersion.Default,
|
||||
ISessionStore store = null,
|
||||
string sessionUserId = "session",
|
||||
TcpClientConnectionHandler handler = null
|
||||
)
|
||||
{
|
||||
if (apiId == default(int))
|
||||
throw new MissingApiConfigurationException("API_ID");
|
||||
|
|
|
|||
Loading…
Reference in a new issue