Beispiel #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);
     }
 }
        /// <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);
            }
        }
        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);
        }
Beispiel #4
0
 static void OnError(object sender, BundleErrorEventArgs e)
 {
     Console.WriteLine("error: {0}, uiHint: {1}, message: {2}", e.Code, e.UIHint, e.Message);
 }
Beispiel #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;
        }
Beispiel #6
0
 static void OnError(object sender, BundleErrorEventArgs e)
 {
     Console.WriteLine("error: {0}, uiHint: {1}, message: {2}", e.Code, e.UIHint, e.Message);
 }