Пример #1
0
 public override bool onTryGetId(int id__, APlayTest.Server.Client client__)
 {
     // Autogenerated log message for call
     APlay.Common.Logging.Logger.LogDesigned(2, "Client.onTryGetId called", "APlayTest.Server.Client");
     /// TODO: add your code here
     return(false);
 }
Пример #2
0
        /// <summary>
        /// a client disconnected
        /// </summary>

        /// <param name="client">
        /// the representation of this client
        /// </param>

        public override void onClientDisconnect(APlayTest.Server.Client client)
        {
            // Autogenerated log message for call
            APlay.Common.Logging.Logger.LogDesigned(2, "APlayServer.onClientDisconnect called", "APlayTest.Server.APlayServer");

            _clientIdLookup.Free(client.Id);
        }
Пример #3
0
        /// <summary>
        /// a client connected
        /// </summary>

        /// <param name="client">
        /// the representation of this client
        /// </param>

        public override void onClientConnect(APlayTest.Server.Client client)
        {
            // Autogenerated log message for call
            APlay.Common.Logging.Logger.LogDesigned(2, "APlayServer.onClientConnect called", "APlayTest.Server.APlayServer");

            client.TryGetIdEventHandler += ClientOnTryGetIdEventHandler;

            client.Id = IdGenerator.GetNextId();

            _clientIdLookup.Lock(client.Id);

            var projectManager = _projectManagerFactory.CreateProjectManager();

            projectManager.DataClient = client;

            client.ProjectManager = projectManager;
        }
Пример #4
0
        private bool ClientOnTryGetIdEventHandler(int desiredId, APlayTest.Server.Client client)
        {
            if (client.Id == desiredId)
            {
                return(true);
            }

            if (!_clientIdLookup.IsUsed(desiredId))
            {
                _clientIdLookup.Free(client.Id);

                APlay.Common.Logging.Logger.LogDesigned(2, "Client changed id: " + client.Id + " -> " + desiredId, "APlayTest.Server.APlayServer");

                client.Id = desiredId;
            }

            return(true);
        }
Пример #5
0
 public override void onRemoveConnector(APlayTest.Server.Connector connection__, APlayTest.Server.Client client__)
 {
     // Autogenerated log message for call
     APlay.Common.Logging.Logger.LogDesigned(2, "Sheet.onRemoveConnector called", "APlayTest.Server.Sheet");
     /// TODO: add your code here
 }
Пример #6
0
 public override void onAdd(APlayTest.Server.BlockSymbol blockSymbol__, APlayTest.Server.Client client__)
 {
     // Autogenerated log message for call
     APlay.Common.Logging.Logger.LogDesigned(2, "Sheet.onAdd called", "APlayTest.Server.Sheet");
     /// TODO: add your code here
 }
Пример #7
0
 public override void onSetName(String name__, APlayTest.Server.Client client__)
 {
     // Autogenerated log message for call
     APlay.Common.Logging.Logger.LogDesigned(2, "Sheet.onSetName called", "APlayTest.Server.Sheet");
     /// TODO: add your code here
 }
Пример #8
0
 public override void onCreateProject(APlayTest.Server.Client sender__, String name__)
 {
     // Autogenerated log message for call
     APlay.Common.Logging.Logger.LogDesigned(2, "ProjectManager.onCreateProject called", "APlayTest.Server.ProjectManager");
     /// TODO: add your code here
 }
Пример #9
0
 public override void onSetColor(uint Color__, APlayTest.Server.Client client__)
 {
     // Autogenerated log message for call
     APlay.Common.Logging.Logger.LogDesigned(2, "Connection.onSetColor called", "APlayTest.Server.Connection");
     /// TODO: add your code here
 }
Пример #10
0
 public override void onSetPosition(APlayTest.Server.AplayPoint position__, APlayTest.Server.Client client__)
 {
     // Autogenerated log message for call
     APlay.Common.Logging.Logger.LogDesigned(2, "Connector.onSetPosition called", "APlayTest.Server.Connector");
     /// TODO: add your code here
 }
Пример #11
0
        /// <summary>
        /// a client disconnected
        /// </summary>

        /// <param name="client">
        /// the representation of this client
        /// </param>

        public override void onClientDisconnect(APlayTest.Server.Client client)
        {
            // Autogenerated log message for call
            APlay.Common.Logging.Logger.LogDesigned(2, "APlayServer.onClientDisconnect called", "APlayTest.Server.APlayServer");
            /// TODO: add your code here
        }