コード例 #1
0
 public override void Process(ProcessorArgs args)
 {
     RequestHandler resolvedHandler;
       if (!RequestHandlerChief.TryToResolveHandler(args, out resolvedHandler))
       {
     if (!args.ClipboardEvent)
     {
       this.HandleErrorAndAbortPipeline(args, this.NotFoundTrayIcon);
     }
     else
     {
       args.Abort();
     }
     return;
       }
       args.ResolvedHandler = resolvedHandler;
 }
コード例 #2
0
        public override void Process(ProcessorArgs args)
        {
            RequestHandler resolvedHandler;

            if (!RequestHandlerChief.TryToResolveHandler(args, out resolvedHandler))
            {
                if (!args.ClipboardEvent)
                {
                    this.HandleErrorAndAbortPipeline(args, this.NotFoundTrayIcon);
                }
                else
                {
                    args.Abort();
                }
                return;
            }
            args.ResolvedHandler = resolvedHandler;
        }
コード例 #3
0
        public override void Process(ProcessorArgs args)
        {
            RequestHandler resolvedHandler = args.ResolvedHandler;
              if (resolvedHandler == null)
              {
            throw new ArgumentException("args.ResolvedHandler");
              }

              if (!resolvedHandler.PreExecute(args.ResultUrl, args.ClipboardEvent))
              {
            if (args.ClipboardEvent)
            {
              args.Abort();
            }
            else
            {
              this.HandleErrorAndAbortPipeline(args, this.NotFoundTrayIcon);
            }
              }
        }
コード例 #4
0
        public override void Process(ProcessorArgs args)
        {
            RequestHandler resolvedHandler = args.ResolvedHandler;

            if (resolvedHandler == null)
            {
                throw new ArgumentException("args.ResolvedHandler");
            }

            if (!resolvedHandler.PreExecute(args.ResultUrl, args.ClipboardEvent))
            {
                if (args.ClipboardEvent)
                {
                    args.Abort();
                }
                else
                {
                    this.HandleErrorAndAbortPipeline(args, this.NotFoundTrayIcon);
                }
            }
        }
コード例 #5
0
 public override void Process(ProcessorArgs args)
 {
     if (args.ClipboardEvent)
       {
     if (args.PredefinedClipboardValue.IsNullOrEmpty())
     {
       args.Abort();
       return;
     }
     args.ResultUrl = args.PredefinedClipboardValue;
       }
       else
       {
     string currentValue = Factory.ActualFactory.GetClipboardProvider().GetValue();
     if (currentValue.IsNullOrEmpty())
     {
       this.HandleErrorAndAbortPipeline(args, this.NotFoundTrayIcon);
     }
     else
     {
       args.ResultUrl = currentValue;
     }
       }
 }
コード例 #6
0
 public override void Process(ProcessorArgs args)
 {
     if (args.ClipboardEvent)
     {
         if (args.PredefinedClipboardValue.IsNullOrEmpty())
         {
             args.Abort();
             return;
         }
         args.ResultUrl = args.PredefinedClipboardValue;
     }
     else
     {
         string currentValue = Factory.ActualFactory.GetClipboardProvider().GetValue();
         if (currentValue.IsNullOrEmpty())
         {
             this.HandleErrorAndAbortPipeline(args, this.NotFoundTrayIcon);
         }
         else
         {
             args.ResultUrl = currentValue;
         }
     }
 }