Hololens/Lib/Application.cs
//###################################################################################################################
/// <summary>
/// The start method of an UrhoSharp StereoApplication class. Configure the sockets an launch the connections.
/// This must not be overrided, use <see cref="Init"/> instead.
/// </summary>
The start method of an UrhoSharp StereoApplication class. Configure the sockets an launch the connections.
This must not be overrided, use  instead.
The start method of an UrhoSharp StereoApplication class . Configure the sockets an launch the connections . This must not be overrided use instead .
protected override async void Start()
        {
            base.Start(); 
            Init(); 
            _fRCamera = new UdpFRCamera();
            await _fRCamera.Start();
            _rcSocket = new RayCollisionUdpSocket();
            _rcSocket.DepthTestFunction += this.DepthTestFunction; 
            this.RayHitPositionReceived += _rcSocket.RayHitPositionReceived; 
            _socket = new DisplayUdpSocket();
            _socket.OnReceivedDisplayCommand += this.OnReceivedDisplayCommand; 
            await _fRCamera.Connect(_ip, _cameraSocketPort);
            await _rcSocket.Connect(_ip, _rayCollisionSocketPort);
            await _socket.Connect(_ip, _displaySocketPort);
        }
protected override async void Start ( ) { base . Start ( ) ; Init ( ) ; _fRCamera = new UdpFRCamera ( ) ; await _fRCamera . Start ( ) ; _rcSocket = new RayCollisionUdpSocket ( ) ; _rcSocket . DepthTestFunction += this . DepthTestFunction ; this . RayHitPositionReceived += _rcSocket . RayHitPositionReceived ; _socket = new DisplayUdpSocket ( ) ; _socket . OnReceivedDisplayCommand += this . OnReceivedDisplayCommand ; await _fRCamera . Connect ( _ip , _cameraSocketPort ) ; await _rcSocket . Connect ( _ip , _rayCollisionSocketPort ) ; await _socket . Connect ( _ip , _displaySocketPort ) ; }
The start method of an UrhoSharp StereoApplication class.
The start method of an UrhoSharp StereoApplication class .
// call the inherited method // display initialisation // create and start the camera socket // create the ray collision socket and bind callback methods for ray hit test // the socket will call this.DepthTestFunction for a request of ray hit test // the app will call Socket.RayHitPositionReceived for submit 3D coordinate found // create the display socket and bind the method  // the socket will call this.OnReceivedDisplayCommand when it receive a command // connection for all the sockets