/// <summary> /// Creates a new connection instance. /// </summary> /// <param name="messagingSettings">Qbes messaging configuration /// node</param> /// <param name="connection">NetConnection object</param> /// <param name="callback">Callback for completed received multipart /// messages</param> public Connection(MessagingConfiguration messagingSettings, NetConnection connection, CompletedReceivedMultipartMessage callback) { _MaxMessageSize = messagingSettings.MaxMessageSize; _Connection = connection; _RemoteEndPoint = connection.RemoteEndPoint; _CompletedReceivedMultipartCallback = callback; }
/// <summary> /// Creates a new connection instance. /// </summary> /// <param name="messagingSettings">Qbes messaging configuration /// node</param> /// <param name="connection">NetConnection object</param> /// <param name="callback">Callback for completed received multipart /// messages</param> public Connection(MessagingConfiguration messagingSettings, NetConnection connection, CompletedReceivedMultipartMessage callback) { _MaxMessageSize = messagingSettings.MaxMessageSize; _Connection = connection; _RemoteEndPoint = connection.RemoteEndPoint; _CompletedReceivedMultipartCallback = callback; }
internal void AddConnection(NetConnection connection, CompletedReceivedMultipartMessage callback) { Connection newConnection = new Connection(ServerWorldManager.Instance.Configuration.MessagingConfigurationNode, connection, callback); _RemoteIdConnections.Add(connection.RemoteUniqueIdentifier, newConnection); }
internal void AddConnection(NetConnection connection, CompletedReceivedMultipartMessage callback) { Connection newConnection = new Connection(ServerWorldManager.Instance.Configuration.MessagingConfigurationNode, connection, callback); _RemoteIdConnections.Add(connection.RemoteUniqueIdentifier, newConnection); }