C# Class AcManager.Tools.Helpers.Api.KunosApiProvider

Show file Open project: gro-ove/actools

Public Properties

Property Type Description
OptionForceDisabledCache bool
OptionIgnoreSystemProxy bool
OptionLanPollTimeout int
OptionLanSocketTimeout int
OptionSaveResponses bool
OptionUseWebClient bool
OptionWebRequestTimeout int

Private Properties

Property Type Description
BroadcastPing FoundServerInformation
GetBroadcastAddresses IEnumerable
Load string
LoadAsync Task
LoadListUsingRequest AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]
LoadUsingClient string
LoadUsingClientAsync Task
LoadUsingRequest string
LoadUsingRequestAsync Task
NextServer void
PrepareLan AcManager.Tools.Helpers.Api.Kunos.ServerInformation
TryToBook AcManager.Tools.Helpers.Api.Kunos.BookingResult
TryToGetCurrentInformation AcManager.Tools.Helpers.Api.Kunos.ServerActualInformation
TryToGetCurrentInformationAsync Task
TryToGetInformation AcManager.Tools.Helpers.Api.Kunos.ServerInformation
TryToGetInformationDirect AcManager.Tools.Helpers.Api.Kunos.ServerInformation
TryToGetInformationDirect AcManager.Tools.Helpers.Api.Kunos.ServerInformation
TryToGetInformationDirectAsync Task
TryToGetList AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]
TryToPingServer TimeSpan>.Tuple
TryToPingServerAsync TimeSpan>>.Task
TryToUnbook void

Public Methods

Method Description
ParseAddress ( string address, string &ip, int &port ) : bool
TryToGetLanList ( ) : AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]
TryToGetLanList ( IEnumerable ports ) : AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]
TryToGetLanList ( Action foundCallback ) : void
TryToGetLanList ( Action foundCallback, IEnumerable ports ) : void

Private Methods

Method Description
BroadcastPing ( IPAddress broadcastAddress, int port ) : FoundServerInformation
GetBroadcastAddresses ( ) : IEnumerable
Load ( string uri ) : string
LoadAsync ( string uri ) : Task
LoadListUsingRequest ( string uri ) : AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]
LoadUsingClient ( string uri ) : string
LoadUsingClientAsync ( string uri ) : Task
LoadUsingRequest ( string uri ) : string
LoadUsingRequestAsync ( string uri ) : Task
NextServer ( ) : void
PrepareLan ( ServerInformation result, string ip ) : ServerInformation
TryToBook ( string ip, int portC, string password, string carId, string skinId, string driverName, string teamName ) : BookingResult
TryToGetCurrentInformation ( string ip, int portC ) : ServerActualInformation
TryToGetCurrentInformationAsync ( string ip, int portC ) : Task
TryToGetInformation ( string ip, int port ) : ServerInformation
TryToGetInformationDirect ( [ address ) : ServerInformation
TryToGetInformationDirect ( string ip, int portC ) : ServerInformation
TryToGetInformationDirectAsync ( string ip, int portC ) : Task
TryToGetList ( ) : AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]
TryToPingServer ( string ip, int port, int timeout ) : TimeSpan>.Tuple
TryToPingServerAsync ( string ip, int port, int timeout ) : TimeSpan>>.Task
TryToUnbook ( string ip, int portC ) : void

Method Details

ParseAddress() public static method

public static ParseAddress ( string address, string &ip, int &port ) : bool
address string
ip string
port int
return bool

TryToGetLanList() public static method

public static TryToGetLanList ( ) : AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]
return AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]

TryToGetLanList() public static method

public static TryToGetLanList ( IEnumerable ports ) : AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]
ports IEnumerable
return AcManager.Tools.Helpers.Api.Kunos.ServerInformation[]

TryToGetLanList() public static method

public static TryToGetLanList ( Action foundCallback ) : void
foundCallback Action
return void

TryToGetLanList() public static method

public static TryToGetLanList ( Action foundCallback, IEnumerable ports ) : void
foundCallback Action
ports IEnumerable
return void

Property Details

OptionForceDisabledCache public static property

public static bool OptionForceDisabledCache
return bool

OptionIgnoreSystemProxy public static property

public static bool OptionIgnoreSystemProxy
return bool

OptionLanPollTimeout public static property

public static int OptionLanPollTimeout
return int

OptionLanSocketTimeout public static property

public static int OptionLanSocketTimeout
return int

OptionSaveResponses public static property

public static bool OptionSaveResponses
return bool

OptionUseWebClient public static property

public static bool OptionUseWebClient
return bool

OptionWebRequestTimeout public static property

public static int OptionWebRequestTimeout
return int