本文整理汇总了C#中BeginEventHandler类的典型用法代码示例。如果您正苦于以下问题:C# BeginEventHandler类的具体用法?C# BeginEventHandler怎么用?C# BeginEventHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BeginEventHandler类属于命名空间,在下文中一共展示了BeginEventHandler类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: AddOnResolveRequestCacheAsync
public void AddOnResolveRequestCacheAsync(BeginEventHandler bh, EndEventHandler eh) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:HttpApplication.cs
示例17: AddOnMapRequestHandlerAsync
public void AddOnMapRequestHandlerAsync(BeginEventHandler bh, EndEventHandler eh) {
if (!HttpRuntime.UseIntegratedPipeline) {
throw new PlatformNotSupportedException(SR.GetString(SR.Requires_Iis_Integrated_Mode));
}
AddOnMapRequestHandlerAsync(bh, eh, null);
}
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:6,代码来源:HttpApplication.cs
示例18: AddOnPostMapRequestHandlerAsync
public void AddOnPostMapRequestHandlerAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, Object state) {
AsyncEvents.AddHandler(EventPostMapRequestHandler, beginHandler, endHandler, state,
RequestNotification.MapRequestHandler, true, this);
}
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:4,代码来源:HttpApplication.cs
示例19: AddOnPostRequestHandlerExecuteAsync
public void AddOnPostRequestHandlerExecuteAsync(BeginEventHandler bh, EndEventHandler eh) {}
开发者ID:Pengfei-Gao,项目名称:source-Insight-3-for-centos7,代码行数:1,代码来源:HttpApplication.cs
示例20: AddOnPreRenderCompleteAsync
public void AddOnPreRenderCompleteAsync (BeginEventHandler beginHandler, EndEventHandler endHandler)
{
AddOnPreRenderCompleteAsync (beginHandler, endHandler, null);
}
开发者ID:jdecuyper,项目名称:mono,代码行数:4,代码来源:Page.cs
注:本文中的BeginEventHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论