Class ArchipelagoSessionFactory
- Namespace
- Archipelago.MultiClient.Net
- Assembly
- Archipelago.MultiClient.Net.dll
Factory to initiate a new ArchipelagoSession, the base object to communicate with an Archipelago Server
public static class ArchipelagoSessionFactory
- Inheritance
-
ArchipelagoSessionFactory
- Inherited Members
Methods
CreateSession(string, int)
Creates an ArchipelagoSession object which facilitates all communication to the Archipelago server.
public static ArchipelagoSession CreateSession(string hostname, int port = 38281)
Parameters
hostnamestringThe hostname of the Archipelago server, can include protocol and port. Ex:
archipelago.gg,localhost,localhost:38281orws://archipelago.gg:46376portint(Optional) The port number which the Archipelago server is hosted on. Defaults to: 38281, will be ignored if the port is added to the hostname
Returns
CreateSession(Uri)
Creates an ArchipelagoSession object which facilitates all communication to the Archipelago server.
public static ArchipelagoSession CreateSession(Uri uri)
Parameters
uriUriThe full URI to the Archipelago server, including scheme, hostname, and port.