C# Class Examples.ExamplesConsole.ExampleHelper

Provides implementation shared across examples
ファイルを表示 Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Public Methods

Method Description
GetServerDetails ( ApplicationLayerProtocolStatus applicationLayerProtocol = ApplicationLayerProtocolStatus.Enabled ) : ConnectionInfo

Request user to provide server details and returns the result as a ConnectionInfo object. Performs the necessary validation and prevents code duplication across examples.

Method Details

GetServerDetails() public static method

Request user to provide server details and returns the result as a ConnectionInfo object. Performs the necessary validation and prevents code duplication across examples.
public static GetServerDetails ( ApplicationLayerProtocolStatus applicationLayerProtocol = ApplicationLayerProtocolStatus.Enabled ) : ConnectionInfo
applicationLayerProtocol ApplicationLayerProtocolStatus If enabled NetworkComms.Net uses a custom /// application layer protocol to provide useful features such as inline serialisation, /// transparent packet transmission, remote peer handshake and information etc. We strongly /// recommend you enable the NetworkComms.Net application layer protocol.
return ConnectionInfo