SetSession() приватный Метод

private SetSession ( ClientSession clientSession ) : void
clientSession ClientSession
Результат void
Пример #1
0
        public void SetCharacter(Character character)
        {
            Character = character;

            // register WCF events
            ServiceFactory.Instance.CommunicationCallback.CharacterConnectedEvent    += CommunicationCallback_CharacterConnectedEvent;
            ServiceFactory.Instance.CommunicationCallback.CharacterDisconnectedEvent += CommunicationCallback_CharacterDisconnectedEvent;

            HasSelectedCharacter = true;

            // register for servermanager
            ServerManager.Instance.RegisterSession(this);
            Character.SetSession(this);
        }
Пример #2
0
        public void SetCharacter(Character character)
        {
            Character = character;

            // register WCF events
            ServerCommunicationClient.Instance.CharacterConnectedEvent    += OnOtherCharacterConnected;
            ServerCommunicationClient.Instance.CharacterDisconnectedEvent += OnOtherCharacterDisconnected;

            HasSelectedCharacter = true;

            // register for servermanager
            ServerManager.Instance.RegisterSession(this);
            Character.SetSession(this);
        }
Пример #3
0
        public void SetCharacter(Character character)
        {
            Character = character;

            // register events
            CommunicationServiceClient.Instance.CharacterConnectedEvent    += OnOtherCharacterConnected;
            CommunicationServiceClient.Instance.CharacterDisconnectedEvent += OnOtherCharacterDisconnected;

            HasSelectedCharacter = true;

            // register for servermanager
            ServerManager.Instance.RegisterSession(this);
            Character.SetSession(this);
            Character.Buff = new ConcurrentBag <Buff>();
        }
Пример #4
0
        public void SetCharacter(Character character)
        {
            Character = character;

            // register WCF events
            ServiceFactory.Instance.CommunicationCallback.CharacterConnectedEvent += CommunicationCallback_CharacterConnectedEvent;
            ServiceFactory.Instance.CommunicationCallback.CharacterDisconnectedEvent += CommunicationCallback_CharacterDisconnectedEvent;

            HasSelectedCharacter = true;

            // register for servermanager
            ServerManager.Instance.RegisterSession(this);
            Character.SetSession(this);
        }