public ChatRegisterHandler(ILogger log, IClientCodeRemover codeRemover, IConnectionCollection <IClientPeer> connectionCollection) { this.log = log; this.codeRemover = codeRemover; this.connectionCollection = connectionCollection; }
public LoginAuthenticationHandler(ILogger log, IAuthorizationService authService, IConnectionCollection <IClientPeer> connectionCollection, IPeerFactory peerFactory) { Log = log; AuthService = authService; ConnectionCollection = connectionCollection; PeerFactory = peerFactory; }
public ResponseForwardHandler(ILogger log, IConnectionCollection <IClientPeer> connectionCollection, ServerConfiguration serverConfiguration, IClientCodeRemover clientCodeRemover) { Log = log; _connectionCollection = connectionCollection; _serverConfiguration = serverConfiguration; _clientCodeRemover = clientCodeRemover; }
public MenuSubServer(Plugin plugin) : base(plugin) { ConnectionCollection = new ClientConnectionCollection(); var menuHandlers = new List <AbstractSubServerHandler> { }; subServerHandlerList = new SubServerHandlerList(menuHandlers); }
public LoginSubServer(IAuthorizationService authService, Plugin plugin) : base(plugin) { ConnectionCollection = new ClientConnectionCollection(); var loginHandlers = new List <AbstractSubServerHandler> { new LoginAccountCreationHandler(authService), new LoginAuthorizationHandler(authService) }; subServerHandlerList = new SubServerHandlerList(loginHandlers); }
/// <summary> /// Constructor /// </summary> public ResetManager( IAutoTracker autoTracker, IBossPlacementDictionary bossPlacements, IConnectionCollection connections, IDropdownDictionary dropdowns, IItemDictionary items, ILocationDictionary locations, IPinnedLocationCollection pinnedLocations, IPrizePlacementDictionary prizePlacements, IUndoRedoManager undoRedoManager) { _autoTracker = autoTracker; _bossPlacements = bossPlacements; _connections = connections; _dropdowns = dropdowns; _items = items; _locations = locations; _pinnedLocations = pinnedLocations; _prizePlacements = prizePlacements; _undoRedoManager = undoRedoManager; }
public ServerApplication(ServerConfiguration serverConfiguration, ILogger log, PhotonApplication server, IEnumerable <PeerInfo> peerInfo, IEnumerable <IBackgroundThread> backgroundThreads, IServerConnectionCollection <IServerType, IServerPeer> serverCollection, IConnectionCollection <IClientPeer> clientCollection, IEnumerable <IAfterServerRegistration> afterServerRegistrationEvents) { ServerConfiguration = serverConfiguration; Log = log; Server = server; _peerInfo = peerInfo; _backgroundThreads = backgroundThreads; _serverCollection = serverCollection; _clientCollection = clientCollection; _afterServerRegistrationEvents = afterServerRegistrationEvents; }
public PhotonClientPeer(InitRequest initRequest, ILogger log, IServerApplication server, IEnumerable <IClientData> clientData, IConnectionCollection <IClientPeer> connectionCollection, IHandlerList <IClientPeer> handlerList) : base(initRequest) { Log = log; _server = server; _handlerList = handlerList; Log.DebugFormat("Created Client Peer"); ConnectionCollection = connectionCollection; ConnectionCollection.Connect(this); PeerId = Guid.NewGuid(); _clientData = new Dictionary <Type, IClientData>(); foreach (var data in clientData) { _clientData.Add(data.GetType(), data); } }
//TODO: Refactor public ServerCore(ILogger loggerInstance, string appName, int port, string hailMessage) : base() { NetworkMessageHandler = new PacketHandler(loggerInstance); NetworkMessageHandler.Register <DiffieHellmanAESEncryptor>(EncryptionBase.DefaultByte); Port = port; UnhandledServerConnections = new List <ConnectionResponse>(); //Register the default serializer this.NetworkMessageHandler.Register <GladNetProtobufNetSerializer>(); ClassLogger = loggerInstance; Clients = new ConnectionCollection <ClientPeer, NetConnection>(); ServerConnections = new ConnectionCollection <ServerPeer, NetConnection>(); //Construction of the Lidgren server listener NetPeerConfiguration config = new NetPeerConfiguration(appName); config.Port = port; //Server needs a much larger than default buffer size because corruption can happen otherwise config.ReceiveBufferSize = 500000; config.SendBufferSize = 500000; //This message type must be set to true so we can manage connections with hailmessages and so that we can //reject the majority of non-malicious malformed connection attempts config.SetMessageTypeEnabled(NetIncomingMessageType.ConnectionApproval, true); config.SetMessageTypeEnabled(NetIncomingMessageType.ExternalHighlevelMessage, true); //Reduces GC config.UseMessageRecycling = true; lidgrenServerObj = new NetServer(config); ExpectedClientHailMessage = hailMessage; }
/// <summary> /// Constructor /// </summary> /// <param name="connections"> /// The connection collection. /// </param> /// <param name="connection"> /// The connection to be removed. /// </param> public RemoveConnection( IConnectionCollection connections, IConnection connection) { _connections = connections; _connection = connection; }
public TestBackgroundThread(IConnectionCollection <IClientPeer> connectionCollection, ILogger log) // Include all IoC objects this thread needs i.e. IRegion, IStats, etc... { Log = log; ConnectionCollection = connectionCollection; }
public DisconnectHandler(ILogger log, IConnectionCollection <IClientPeer> connectionCollection) { this.log = log; this.connectionCollection = connectionCollection; }
/// <summary> /// Initializes a new instance of the <see cref="Connection_ListViewModel" /> class. /// </summary> /// <param name="dialogService">The Dialog Service.</param> /// <param name="navigationService">The Navigation Service.</param> /// <param name="connectionCollection">The Connection Collection.</param> public Connection_ListViewModel(IDialogService dialogService, INavigationService navigationService, IConnectionCollection connectionCollection) { _dialogService = dialogService; _navigationService = navigationService; _connectionCollection = connectionCollection; }
public RequestForwardHandler(ILogger log, IConnectionCollection <IClientPeer> connectionCollection, ServerConfiguration serverConfiguration) { Log = log; _connectionCollection = connectionCollection; _serverConfiguration = serverConfiguration; }
/// <summary> /// Constructor /// </summary> /// <param name="connections"> /// The connection collection. /// </param> /// <param name="connection"> /// A tuple of the two map locations that are being collected. /// </param> public AddConnection( IConnectionCollection connections, IConnection connection) { _connections = connections; _connection = connection; }
public HighlevelMessageHandler(IConnectionCollection <ServerPeer, NetConnection> servers, IConnectionCollection <ClientPeer, NetConnection> clients, ILogger logger) { Servers = servers; Clients = clients; ClassLogger = logger; }
public MapConnectionCollection( IMapConnectionVM.Factory factory, IConnectionCollection model) : base(model) { _factory = factory; }
public LoginHandler(ILogger log, IConnectionCollection <IClientPeer> connectionCollection, IPeerFactory peerFactory) { this.log = log; this.connectionCollection = connectionCollection; this.peerFactory = peerFactory; }
/// <summary> /// NOTICE: Include all IoC objects this thread needs i.e. IRegion, IStats, etc... /// </summary> public TestBackgroundThread(IConnectionCollection <IClientPeer> connectionCollection, ILogger log) { Log = log; ConnectionCollection = connectionCollection; }