Exemplo n.º 1
0
 private bool RequestEnforcement()
 {
     if (Session.Enforced.Version <= 0)
     {
         if (!_isServer)
         {
             var enforcement = Enforcements.LoadEnforcement(Shield);
             if (enforcement != null)
             {
                 Session.Enforced = enforcement;
             }
             else if (!_requestedEnforcement)
             {
                 Enforcements.EnforcementRequest(Shield.EntityId);
                 _requestedEnforcement = true;
             }
         }
     }
     return(Session.Enforced.Version <= 0);
 }