Ejemplo n.º 1
0
        public static void OnUploadCreated(ConnectionList connectionList, string connectionID, GenericPageFile pageFile, HttpRequest request)
        {
            var message = Message.CreateEmtpyMessage( "ServerMessage" );
            message[ "Message" ] = ""+DateTime.Now + " OnUploadCreated";
            LongPolling.HttpHandler.MessageHandlerStatic.SendMessageToConnection( connectionID, message );

            pageFile.OnUploadStarted = (rqst,uploadFileName)=>{ OnUploadStarted(pageFile, uploadFileName); };
            pageFile.OnUploadTerminated = (rqst,fileName,filePath,succes,size)=>{ OnUploadTerminated(pageFile, fileName, filePath, succes, size); };
        }
Ejemplo n.º 2
0
 public static void OnUploadTerminated(GenericPageFile pageFile, string fileName, string filePath, bool succes, long size)
 {
     var message = Message.CreateEmtpyMessage( "ServerMessage" );
     message[ "Message" ] = ""+DateTime.Now + " OnUploadTerminated " + succes + " ; " + fileName + " ; " + size + " ; " + filePath;
     LongPolling.HttpHandler.MessageHandlerStatic.SendMessageToConnection( pageFile.ConnectionID, message );
 }
Ejemplo n.º 3
0
 public static void OnUploadStarted(GenericPageFile pageFile, string uploadFileName)
 {
     var message = Message.CreateEmtpyMessage( "ServerMessage" );
     message[ "Message" ] = ""+DateTime.Now + " OnUploadStarted ; " + uploadFileName;
     LongPolling.HttpHandler.MessageHandlerStatic.SendMessageToConnection( pageFile.ConnectionID, message );
 }