public override void BeforeSetProperties(IBeforeSetPropertiesCallInfo info)
 {
     if (info.Request.ActorNumber == 0)
     {
         base.BeforeSetProperties(info);
     }
     else if (info.Request.ActorNumber == 1)
     {
         info.Cancel();
     }
     else if (info.Request.ActorNumber == 2)
     {
         info.Defer();
     }
     else if (info.Request.ActorNumber == 3)
     {
         info.Fail();
         this.PluginHost.BroadcastErrorInfoEvent("We called fail method");
     }
 }
Пример #2
0
 public override void BeforeSetProperties(IBeforeSetPropertiesCallInfo info)
 {
     if (info.Request.ActorNumber == 0)
     {
         base.BeforeSetProperties(info);
     }
     else if (info.Request.ActorNumber == 1)
     {
         info.Cancel();
     }
     else if (info.Request.ActorNumber == 2)
     {
         info.Defer();
     }
     else if (info.Request.ActorNumber == 3)
     {
         info.Fail();
         this.PluginHost.BroadcastErrorInfoEvent("We called fail method");
     }
 }
        public override void BeforeSetProperties(IBeforeSetPropertiesCallInfo info)
        {
            if (info.Request.ActorNumber == 0)
            {
                base.BeforeSetProperties(info);
            }
            else if (info.Request.ActorNumber == 1)
            {
                info.Cancel();
            }
            else if (info.Request.ActorNumber == 2)
            {
#pragma warning disable CS0618 // Type or member is obsolete
                info.Defer();
#pragma warning restore CS0618 // Type or member is obsolete
            }
            else if (info.Request.ActorNumber == 3)
            {
                info.Fail();
                this.PluginHost.BroadcastErrorInfoEvent("We called fail method");
            }
        }