Exemplo n.º 1
0
 public ClientGameForwardingRequestHandler(ILogger log, IClientCodeRemover codeRemover,
                                           IServerConnectionCollection <IServerType, IServerPeer> connectionCollection)
 {
     this.log                  = log;
     this.codeRemover          = codeRemover;
     this.connectionCollection = connectionCollection;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 4
0
 public ClientLoginForwardingRequestHandler(ILogger log, IClientCodeRemover codeRemover, IServerConnectionCollection <IServerType, IServerPeer> connectionCollection)
 {
     Log                  = log;
     CodeRemover          = codeRemover;
     ConnectionCollection = connectionCollection;
 }