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); } }
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); } }