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


C# BeginEventHandler类代码示例

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


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

示例1: AttachHandlers

	private void AttachHandlers()
	{
		BeginEventHandler bh = new BeginEventHandler( this.BeginLoad );
		EndEventHandler eh = new EndEventHandler( this.EndLoad );

		AddOnPreRenderCompleteAsync( bh, eh );
	}
开发者ID:modulexcite,项目名称:Comet-server-for-ASP.NET,代码行数:7,代码来源:async.aspx.cs

示例2: LegacyPageAsyncTask

    internal LegacyPageAsyncTask(BeginEventHandler beginHandler, EndEventHandler endHandler, EndEventHandler timeoutHandler, Object state, bool executeInParallel) {
        // Parameter checking is done by the public PageAsyncTask constructor

        _beginHandler = beginHandler;
        _endHandler = endHandler;
        _timeoutHandler = timeoutHandler;
        _state = state;
        _executeInParallel = executeInParallel;
    }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:9,代码来源:LegacyPageAsyncTask.cs

示例3: PageAsyncTask

		public PageAsyncTask (BeginEventHandler beginHandler, EndEventHandler endHandler,
			EndEventHandler timeoutHandler, Object state, bool executeInParallel) 
		{
			this.beginHandler = beginHandler;
			this.endHandler = endHandler;
			this.timeoutHandler = timeoutHandler;
			this.state = state;
			this.executeInParallel = executeInParallel;
		}
开发者ID:calumjiao,项目名称:Mono-Class-Libraries,代码行数:9,代码来源:PageAsyncTask.cs

示例4: Init

 public void Init(HttpApplication context)
 {
     if (beginEventHandler == null)
     {
         beginEventHandler = new BeginEventHandler(ServiceHttpModule.BeginProcessRequest);
     }
     if (endEventHandler == null)
     {
         endEventHandler = new EndEventHandler(ServiceHttpModule.EndProcessRequest);
     }
     context.AddOnPostAuthenticateRequestAsync(beginEventHandler, endEventHandler);
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:12,代码来源:ServiceHttpModule.cs

示例5: Start_Clicked

        protected void Start_Clicked(object sender, EventArgs e)
        {
            ProgressLabel.Text = "Page_Load: thread #" + System.Threading.Thread.CurrentThread.GetHashCode();

            BeginEventHandler bh = new BeginEventHandler(this.BeginGetAsyncData);
            EndEventHandler eh = new EndEventHandler(this.EndGetAsyncData);

            AddOnPreRenderCompleteAsync(bh, eh);

            // Initialize the WebRequest.
            string address = "http://localhost/";

            myRequest = System.Net.WebRequest.Create(address);
        }
开发者ID:HedinRakot,项目名称:KVS,代码行数:14,代码来源:Rechnungslauf.aspx.cs

示例6: PageAsyncTask

 public PageAsyncTask(BeginEventHandler beginHandler, EndEventHandler endHandler, EndEventHandler timeoutHandler, object state, bool executeInParallel)
 {
     if (beginHandler == null)
     {
         throw new ArgumentNullException("beginHandler");
     }
     if (endHandler == null)
     {
         throw new ArgumentNullException("endHandler");
     }
     this._beginHandler = beginHandler;
     this._endHandler = endHandler;
     this._timeoutHandler = timeoutHandler;
     this._state = state;
     this._executeInParallel = executeInParallel;
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:16,代码来源:PageAsyncTask.cs

示例7: PageAsyncTask

        // APM
        internal PageAsyncTask(BeginEventHandler beginHandler, EndEventHandler endHandler, EndEventHandler timeoutHandler, Object state, bool executeInParallel, SynchronizationContextMode currentMode) {
            if (beginHandler == null) {
                throw new ArgumentNullException("beginHandler");
            }
            if (endHandler == null) {
                throw new ArgumentNullException("endHandler");
            }

            // Only the legacy PageAsyncTaskManager supports timing out APM methods or executing them in parallel
            if (timeoutHandler != null || executeInParallel) {
                SynchronizationContextUtil.ValidateMode(currentMode, requiredMode: SynchronizationContextMode.Legacy, specificErrorMessage: SR.SynchronizationContextUtil_PageAsyncTaskTimeoutHandlerParallelNotCompatible);
            }

            BeginHandler = beginHandler;
            EndHandler = endHandler;
            TimeoutHandler = timeoutHandler;
            State = state;
            ExecuteInParallel = executeInParallel;
        }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:20,代码来源:PageAsyncTask.cs

示例8: DoAsync

    private void DoAsync()
    {
        if (IsAsync)
        {
            Session["Halted"] = false;
            Timer1.Enabled = true;
            var asyncHandler = new AsyncHandler(Context);
            asyncHandler.NotifyHaltHandler += Halted;
            asyncHandler.NotifyLogger += Logger;
            BeginEventHandler bh = new BeginEventHandler(asyncHandler.BeginProcessRequest);
            EndEventHandler eh = new EndEventHandler(asyncHandler.EndProcessRequest);

            AddOnPreRenderCompleteAsync(bh, eh);

            // Initialize the WebRequest.
            string address = "http://localhost/";

            asyncHandler.WebRequest = System.Net.WebRequest.Create(address);
        }
        GC.Collect();
        GC.WaitForPendingFinalizers();
    }
开发者ID:Letractively,项目名称:henoch,代码行数:22,代码来源:Default.aspx.cs

示例9: AddOnBeginRequestAsync

	public void AddOnBeginRequestAsync(BeginEventHandler bh, EndEventHandler eh) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:HttpApplication.cs

示例10: AddOnPostUpdateRequestCacheAsync

	public void AddOnPostUpdateRequestCacheAsync(BeginEventHandler bh, EndEventHandler eh) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:HttpApplication.cs

示例11: AddOnPostReleaseRequestStateAsync

	public void AddOnPostReleaseRequestStateAsync(BeginEventHandler bh, EndEventHandler eh) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:HttpApplication.cs

示例12: AddOnPreRequestHandlerExecuteAsync

	public void AddOnPreRequestHandlerExecuteAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, object state) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:HttpApplication.cs

示例13: AddOnAcquireRequestStateAsync

	public void AddOnAcquireRequestStateAsync(BeginEventHandler bh, EndEventHandler eh) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:HttpApplication.cs

示例14: AddOnPostMapRequestHandlerAsync

	public void AddOnPostMapRequestHandlerAsync(BeginEventHandler bh, EndEventHandler eh) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:HttpApplication.cs

示例15: AddOnPostAuthorizeRequestAsync

	public void AddOnPostAuthorizeRequestAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, object state) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:HttpApplication.cs


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