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


C# ICorDebugAppDomain.Attach方法代码示例

本文整理汇总了C#中ICorDebugAppDomain.Attach方法的典型用法代码示例。如果您正苦于以下问题:C# ICorDebugAppDomain.Attach方法的具体用法?C# ICorDebugAppDomain.Attach怎么用?C# ICorDebugAppDomain.Attach使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ICorDebugAppDomain的用法示例。


在下文中一共展示了ICorDebugAppDomain.Attach方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateAppDomain

        public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
        {
            var domain = new DebugDomain(null, pAppDomain);
            Logger.WriteLine("App domain {0} created", domain.Name);

            pAppDomain.Attach();

            pProcess.Continue(0);
        }
开发者ID:anvaka,项目名称:slinject,代码行数:9,代码来源:ManagedCallback.cs

示例2: CreateAppDomain

		public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
		{
			EnterCallback("CreateAppDomain", pAppDomain);

			pAppDomain.Attach();
			AppDomain appDomain = new AppDomain(process, pAppDomain);
			process.appDomains.Add(appDomain);
			process.OnAppDomainCreated(appDomain);

			ExitCallback();
		}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:11,代码来源:ManagedCallback.cs

示例3: CreateAppDomain

            public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
            {
                try
                {
                    _EnterCallback();

                    if (pAppDomain == null)
                    {
                        throw new NullReferenceException("CreateAppDomain pAppDomain is null");
                    }

                    if (dbgproc == null)
                    {
                        //System.Threading.Thread.Sleep(1000 * 1);
                        //if (dbgproc == null)
                        {
                            throw new NullReferenceException("CreateAppDomain dbgproc is null");
                        }
                    }

                    if (dbgproc.iappdomains == null)
                    {
                        //System.Threading.Thread.Sleep(1000 * 1);
                        //if (dbgproc.iappdomains == null)
                        {
                            throw new NullReferenceException("CreateAppDomain dbgproc.iappdomains is null");
                        }
                    }

                    lock (dbgproc)
                    {
                        pAppDomain.Attach();

                        dbgproc.iappdomains.Add(pAppDomain);
                    }

                    _ResumeCallback();

                    _CallbackEvent("CreateAppDomain");
                }
                catch (Exception e)
                {
                    _CallbackException(e);
                }
            }
开发者ID:erisonliang,项目名称:qizmt,代码行数:45,代码来源:Program.cs

示例4: CreateAppDomain

		public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
		{
			EnterCallback(PausedReason.Other, "CreateAppDomain", pAppDomain);

			pAppDomain.Attach();
			process.AppDomains.Add(new AppDomain(process, pAppDomain));

			ExitCallback();
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:9,代码来源:ManagedCallback.cs

示例5: CreateAppDomain

		public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
		{
			EnterCallback(PausedReason.Other, "CreateAppDomain", pAppDomain);

			pAppDomain.Attach();

			ExitCallback_Continue();
		}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:8,代码来源:ManagedCallback.cs

示例6: CreateAppDomain

 public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
 {
     pAppDomain.Attach();
     controller.Continue(0);
 }
开发者ID:balaramaraju,项目名称:DotNetProcessViewer,代码行数:5,代码来源:ManagedCallbacks.cs

示例7: CreateAppDomain

        public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
        {
            pAppDomain.Attach();
            var process = GetProcessWrapper(pProcess);
            var domain = new RuntimeAppDomain(process, pAppDomain);
            Log("Created application domain {0}.", domain.Name);
            var eventArgs = new GenericDebuggerEventArgs<RuntimeAppDomain>(domain, process);
            process.DispatchAppDomainLoad(eventArgs);

            FinalizeEvent(eventArgs);
        }
开发者ID:die-Deutsche-Orthopaedie,项目名称:LiteDevelop,代码行数:11,代码来源:ManagedCallback.cs


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