private void OnAuthenticated()
        {
            outboundServerPeerLogic.Dispose();
            outboundServerPeerLogic = OutboundServerPeer.CreateOutboundServerPeerLogic <AuthorizationOperations, EmptyEventCode>();

            LogUtils.Log(MessageBuilder.Trace("Authenticated with AuthorizationService service."));
        }
        protected override void OnConnectionEstablished()
        {
            base.OnConnectionEstablished();

            outboundServerPeerLogic = OutboundServerPeer.CreateOutboundServerPeerLogic <ServerOperations, ServerEvents>();
            outboundServerPeerLogic.SetEventHandler((byte)ServerEvents.Server1Event, TestAction);
        }
Exemple #3
0
        protected override void OnConnectionEstablished()
        {
            base.OnConnectionEstablished();

            var secretKey = GetSecretKey().AssertNotNull(MessageBuilder.Trace("Secret key not found."));

            outboundServerPeerLogic = OutboundServerPeer.CreateCommonServerAuthenticationPeerLogic(secretKey, OnAuthenticated);
        }
Exemple #4
0
        private void OnAuthenticated()
        {
            outboundServerPeerLogic.Dispose();
            outboundServerPeerLogic = OutboundServerPeer.CreateOutboundServerPeerLogic <UserProfileOperations, UserProfileEvents>();

            LogUtils.Log(MessageBuilder.Trace("Authenticated with UserProfile service."));

            SubscribeToUserPropertiesChanges();
            RegisterToUserProfileService();
        }
Exemple #5
0
        private void OnAuthenticated()
        {
            outboundServerPeerLogic.Dispose();
            outboundServerPeerLogic = OutboundServerPeer.CreateOutboundServerPeerLogic <ServerOperations, EmptyEventCode>();

            LogUtils.Log(MessageBuilder.Trace("Authenticated with GameServerProvider service."));

            RegisterGameServer();

            var coroutinesManager = ServerComponents.GetComponent <ICoroutinesManager>().AssertNotNull();

            updateGameServerConnectionsContinuously = coroutinesManager.StartCoroutine(UpdateGameServerConnectionsContinuously());
        }