当前位置: 首页>>代码示例>>C#>>正文


C# IInternalConfigRecord类代码示例

本文整理汇总了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;
        }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:9,代码来源:RuntimeConfigurationRecord.cs

示例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;
        }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:14,代码来源:MgmtConfigurationRecord.cs

示例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;
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:10,代码来源:RuntimeConfig.cs

示例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();
        }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:19,代码来源:MgmtConfigurationRecord.cs

示例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;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:22,代码来源:ClientConfigurationHost.cs

示例6: GetRestrictedPermissions

		public virtual void GetRestrictedPermissions (IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady)
		{
			throw new NotImplementedException ();
		}
开发者ID:Xipas,项目名称:Symplified.Auth,代码行数:4,代码来源:InternalConfigurationHost.cs

示例7: IsInitDelayed

		public virtual bool IsInitDelayed (IInternalConfigRecord configRecord)
		{
			throw new NotImplementedException ();
		}
开发者ID:Xipas,项目名称:Symplified.Auth,代码行数:4,代码来源:InternalConfigurationHost.cs

示例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;
                }
            }
        }
开发者ID:kichalla,项目名称:systemconfigurationport,代码行数:22,代码来源:ClientConfigurationHost.cs

示例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;
     }
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:7,代码来源:WebConfigurationHost.cs

示例10:

 void IInternalConfigHost.RequireCompleteInit(IInternalConfigRecord configRecord) {
 }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:2,代码来源:InternalConfigHost.cs

示例11: IsInitDelayed

	// Methods
	public virtual bool IsInitDelayed(IInternalConfigRecord configRecord) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:2,代码来源:DelegatingConfigHost.cs

示例12: RequireCompleteInit

	public virtual void RequireCompleteInit(IInternalConfigRecord configRecord) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:DelegatingConfigHost.cs

示例13: IsFullTrustSectionWithoutAptcaAllowed

 public override bool IsFullTrustSectionWithoutAptcaAllowed(IInternalConfigRecord configRecord) {
     if (HostingEnvironment.IsHosted) {
         return HttpRuntime.HasAspNetHostingPermission(AspNetHostingPermissionLevel.Unrestricted);
     }
     else {
         return Host.IsFullTrustSectionWithoutAptcaAllowed(configRecord);
     }
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:8,代码来源:WebConfigurationHost.cs

示例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;
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:15,代码来源:ClientConfigurationSystem.cs

示例15: GetRestrictedPermissions

 public override void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady) {
     StaticGetRestrictedPermissions(configRecord, out permissionSet, out isHostReady);
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:3,代码来源:WebConfigurationHost.cs


注:本文中的IInternalConfigRecord类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。