public ClientGameForwardingRequestHandler(ILogger log, IClientCodeRemover codeRemover, IServerConnectionCollection <IServerType, IServerPeer> connectionCollection) { this.log = log; this.codeRemover = codeRemover; this.connectionCollection = connectionCollection; }
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 PhotonServerPeer(S2SPeerBase peer, bool isPeer, ILogger log, IServerApplication server, IEnumerable <IServerData> serverData, IServerConnectionCollection <IServerType, IServerPeer> serverCollection, IHandlerList <IServerPeer> handlerList) { _peer = peer; Log = log; Server = server; Log.DebugFormat("Created Server Peer"); _serverCollection = serverCollection; _handlerList = handlerList; _serverCollection.Connect(this); foreach (var data in serverData) { Log.DebugFormat("Data {0}-{1}", data.ToString(), data.GetType().ToString()); _serverData.Add(data.GetType(), data); } }
public ClientLoginForwardingRequestHandler(ILogger log, IClientCodeRemover codeRemover, IServerConnectionCollection <IServerType, IServerPeer> connectionCollection) { Log = log; CodeRemover = codeRemover; ConnectionCollection = connectionCollection; }