本文整理汇总了C#中IInternalConfigRecord类的典型用法代码示例。如果您正苦于以下问题:C# IInternalConfigRecord类的具体用法?C# IInternalConfigRecord怎么用?C# IInternalConfigRecord使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IInternalConfigRecord类属于命名空间,在下文中一共展示了IInternalConfigRecord类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Create
static internal IInternalConfigRecord Create(
InternalConfigRoot configRoot,
IInternalConfigRecord parent,
string configPath) {
RuntimeConfigurationRecord configRecord = new RuntimeConfigurationRecord();
configRecord.Init(configRoot, (BaseConfigurationRecord) parent, configPath, null);
return configRecord;
}
示例2: Create
private HybridDictionary _streamInfoUpdates; // List of StreamInfo, including the main config file, the configSource this record uses, and
// new configSource stream added thru API
static internal MgmtConfigurationRecord Create(
IInternalConfigRoot configRoot,
IInternalConfigRecord parent,
string configPath,
string locationSubPath) {
MgmtConfigurationRecord configRecord = new MgmtConfigurationRecord();
configRecord.Init(configRoot, parent, configPath, locationSubPath);
return configRecord;
}
示例3: RuntimeConfig
protected RuntimeConfig(IInternalConfigRecord configRecord, bool permitNull)
{
this._configRecord = configRecord;
this._permitNull = permitNull;
this._results = new object[0x18];
for (int i = 0; i < this._results.Length; i++)
{
this._results[i] = s_unevaluatedResult;
}
}
示例4: Init
private void Init(
IInternalConfigRoot configRoot,
IInternalConfigRecord parent,
string configPath,
string locationSubPath) {
base.Init(configRoot, (BaseConfigurationRecord) parent, configPath, locationSubPath);
if ( IsLocationConfig &&
(MgmtParent._locationTags == null || !MgmtParent._locationTags.Contains(_locationSubPath))) {
// By instantiating a "new" LocationSubPath class, we have implicitly
// asked for one to be created
_flags[ForceLocationWritten] = true;
}
// Copy all stream information so that we can model changes to ConfigSource
InitStreamInfoUpdates();
}
示例5: GetRestrictedPermissions
public override void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady)
{
string streamName;
bool flag = this.IsFile(configRecord.StreamName);
if (flag)
{
streamName = UrlPath.ConvertFileNameToUrl(configRecord.StreamName);
}
else
{
streamName = configRecord.StreamName;
}
Evidence evidence = new Evidence();
evidence.AddHostEvidence<Url>(new Url(streamName));
evidence.AddHostEvidence<Zone>(Zone.CreateFromUrl(streamName));
if (!flag)
{
evidence.AddHostEvidence<Site>(Site.CreateFromUrl(streamName));
}
permissionSet = SecurityManager.GetStandardSandbox(evidence);
isHostReady = true;
}
示例6: GetRestrictedPermissions
public virtual void GetRestrictedPermissions (IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady)
{
throw new NotImplementedException ();
}
示例7: IsInitDelayed
public virtual bool IsInitDelayed (IInternalConfigRecord configRecord)
{
throw new NotImplementedException ();
}
示例8: RequireCompleteInit
public override void RequireCompleteInit(IInternalConfigRecord record)
{
// Loading information about user.config files is expensive,
// so do it just once by locking.
lock (this)
{
if (!_initComplete)
{
// Note that all future requests for config must be complete.
_initComplete = true;
// Throw out the ConfigPath for this exe.
ClientConfigPaths.RefreshCurrent();
// Throw out our cached copy.
_configPaths = null;
// Force loading of user.config file information under lock.
ClientConfigPaths configPaths = ConfigPaths;
}
}
}
示例9: StaticGetRestrictedPermissions
internal static void StaticGetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady) {
isHostReady = HttpRuntime.IsTrustLevelInitialized;
permissionSet = null;
if (isHostReady && IsVirtualPathConfigPath(configRecord.ConfigPath)) {
permissionSet = HttpRuntime.NamedPermissionSet;
}
}
示例10:
void IInternalConfigHost.RequireCompleteInit(IInternalConfigRecord configRecord) {
}
示例11: IsInitDelayed
// Methods
public virtual bool IsInitDelayed(IInternalConfigRecord configRecord) {}
示例12: RequireCompleteInit
public virtual void RequireCompleteInit(IInternalConfigRecord configRecord) {}
示例13: IsFullTrustSectionWithoutAptcaAllowed
public override bool IsFullTrustSectionWithoutAptcaAllowed(IInternalConfigRecord configRecord) {
if (HostingEnvironment.IsHosted) {
return HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Unrestricted);
}
else {
return Host.IsFullTrustSectionWithoutAptcaAllowed(configRecord);
}
}
示例14: OnConfigRemoved
private void OnConfigRemoved(object sender, InternalConfigEventArgs e)
{
try
{
IInternalConfigRecord configRecord = this._configRoot.GetConfigRecord(this._completeConfigRecord.ConfigPath);
this._completeConfigRecord = configRecord;
this._completeConfigRecord.ThrowIfInitErrors();
}
catch (Exception exception)
{
this._initError = new ConfigurationErrorsException(System.Configuration.SR.GetString("Config_client_config_init_error"), exception);
ConfigurationManager.SetInitError(this._initError);
throw this._initError;
}
}
示例15: GetRestrictedPermissions
public override void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady) {
StaticGetRestrictedPermissions(configRecord, out permissionSet, out isHostReady);
}