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); }
protected override void OnConnectionEstablished() { base.OnConnectionEstablished(); var secretKey = GetSecretKey().AssertNotNull(MessageBuilder.Trace("Secret key not found.")); outboundServerPeerLogic = OutboundServerPeer.CreateCommonServerAuthenticationPeerLogic(secretKey, OnAuthenticated); }
private void OnAuthenticated() { outboundServerPeerLogic.Dispose(); outboundServerPeerLogic = OutboundServerPeer.CreateOutboundServerPeerLogic <UserProfileOperations, UserProfileEvents>(); LogUtils.Log(MessageBuilder.Trace("Authenticated with UserProfile service.")); SubscribeToUserPropertiesChanges(); RegisterToUserProfileService(); }
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()); }