• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IInternalConfigRecord类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IInternalConfigRecord的典型用法代码示例。如果您正苦于以下问题:C# IInternalConfigRecord类的具体用法?C# IInternalConfigRecord怎么用?C# IInternalConfigRecord使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IInternalConfigRecord类属于命名空间,在下文中一共展示了IInternalConfigRecord类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: IsInitDelayed

 // Delay init if we have not been asked to complete init, and it is a user.config file.
 public override bool IsInitDelayed(IInternalConfigRecord configRecord)
 {
     return !_initComplete && IsUserConfig(configRecord.ConfigPath);
 }
开发者ID:kichalla,项目名称:systemconfigurationport,代码行数:5,代码来源:ClientConfigurationHost.cs


示例17: GetRestrictedPermissions

 public virtual void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady) {
     Host.GetRestrictedPermissions(configRecord, out permissionSet, out isHostReady);
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:3,代码来源:DelegatingConfigHost.cs


示例18: OnConfigRemoved

 //
 // If config has been removed because initialization was not complete,
 // fetch a new configuration record. The record will be created and
 // completely initialized as RequireCompleteInit() will have been called
 // on the ClientConfigurationHost before we receive this event.
 //
 private void OnConfigRemoved(object sender, InternalConfigEventArgs e) {
     try {
         IInternalConfigRecord newConfigRecord = _configRoot.GetConfigRecord(_completeConfigRecord.ConfigPath);
         _completeConfigRecord = newConfigRecord;
         _completeConfigRecord.ThrowIfInitErrors();
     }
     catch (Exception ex) {
         _initError = new ConfigurationErrorsException(SR.GetString(SR.Config_client_config_init_error), ex);
         ConfigurationManager.SetInitError(_initError);
         throw _initError;
     }
 }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:18,代码来源:ClientConfigurationSystem.cs


示例19: IsInitDelayed

 public virtual bool IsInitDelayed(IInternalConfigRecord configRecord) {
     return Host.IsInitDelayed(configRecord);
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:3,代码来源:DelegatingConfigHost.cs


示例20: IsFullTrustSectionWithoutAptcaAllowed

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IInternalContextAdapter类代码示例发布时间:2022-05-24
下一篇:
C# IInternalActorRef类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap