示例#1
0
        public override bool IsNewContextOK(Context newCtx)
        {
            InterceptProperty p = newCtx.GetProperty("Intercept") as InterceptProperty;

            if (p == null)
            {
                return(false);
            }
            return(true);
        }
示例#2
0
        public override bool IsContextOK(Context ctx,
                                         System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg)
        {
            InterceptProperty p = ctx.GetProperty("Intercept") as InterceptProperty;

            if (p == null)
            {
                return(false);
            }
            return(true);
        }
 public override bool IsNewContextOK(Context newCtx)
 {
     try
     {
         InterceptProperty p = newCtx.GetProperty("Intercept") as InterceptProperty;
         if (p == null)
         {
             return(false);
         }
         return(true);
     }
     catch (Exception e)
     {
         SeleniumLog log = SeleniumLog.Instance();
         log.Warning().WriteLine("SeleniumLog Exception: 01-09 - " + e.Message);
         return(false);
     }
 }
 public override bool IsContextOK(Context ctx,
                                  System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg)
 {
     try
     {
         InterceptProperty p = ctx.GetProperty("Intercept") as InterceptProperty;
         if (p == null)
         {
             return(false);
         }
         return(true);
     }
     catch (Exception e)
     {
         SeleniumLog log = SeleniumLog.Instance();
         log.Warning().WriteLine("SeleniumLog Exception: 01-08 - " + e.Message);
         return(false);
     }
 }