Exemplo n.º 1
0
 /// <summary>
 /// Called when bundle encounters an error.
 /// </summary>
 /// <param name="e">Additional arguments for this event.</param>
 protected virtual void OnError(BundleErrorEventArgs e)
 {
     EventHandler<BundleErrorEventArgs> handler = this.Error;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Called when bundle encounters an error.
        /// </summary>
        /// <param name="e">Additional arguments for this event.</param>
        protected virtual void OnError(BundleErrorEventArgs e)
        {
            EventHandler <BundleErrorEventArgs> handler = this.Error;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 3
0
        private BundleResult ProcessErrorMessage(NamedPipeServerStream pipe)
        {
            BundleErrorEventArgs e = new BundleErrorEventArgs();

            e.Code    = (int)ReadNumberFromPipe(pipe);
            e.Message = ReadStringFromPipe(pipe);
            e.UIHint  = (int)ReadNumberFromPipe(pipe);

            this.OnError(e);

            return(e.Result);
        }
Exemplo n.º 4
0
 static void OnError(object sender, BundleErrorEventArgs e)
 {
     Console.WriteLine("error: {0}, uiHint: {1}, message: {2}", e.Code, e.UIHint, e.Message);
 }
Exemplo n.º 5
0
        private BundleResult ProcessErrorMessage(NamedPipeServerStream pipe)
        {
            BundleErrorEventArgs e = new BundleErrorEventArgs();
            e.Code = (int)ReadNumberFromPipe(pipe);
            e.Message = ReadStringFromPipe(pipe);
            e.UIHint = (int)ReadNumberFromPipe(pipe);

            this.OnError(e);

            return e.Result;
        }
Exemplo n.º 6
0
 static void OnError(object sender, BundleErrorEventArgs e)
 {
     Console.WriteLine("error: {0}, uiHint: {1}, message: {2}", e.Code, e.UIHint, e.Message);
 }