예제 #1
0
 private void Start()
 {
     try
     {
         if (R.Settings.Instance.WebPermissions.Enabled)
         {
             lastWebPermissionsUpdate = DateTime.Now;
             helper = new RocketPermissionsHelper(new WebXMLFileAsset <RocketPermissions>(R.Settings.Instance.WebPermissions.Url + "?instance=" + R.Implementation.InstanceId));
             updateWebPermissions = true;
         }
         else
         {
             helper = new RocketPermissionsHelper(new XMLFileAsset <RocketPermissions>(Environment.PermissionFile));
         }
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
     }
 }
예제 #2
0
        private void Start()
        {
            try
            {
                if (R.Settings.Instance.WebPermissions.Enabled)
                {
                    lastWebPermissionsUpdate = DateTime.Now;
                    helper = new RocketPermissionsHelper(new WebXMLFileAsset<RocketPermissions>(R.Settings.Instance.WebPermissions.Url + "?instance=" + R.Implementation.InstanceId));
                    updateWebPermissions = true;
                }
                else
                {
                    helper = new RocketPermissionsHelper(new XMLFileAsset<RocketPermissions>(Environment.PermissionFile));
                }

            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
        }