Files
dotnet-bot adf899c629 Adding System.Data..., System.ServiceModel..., and System.Web...
Adding reference source for
System.Data
System.Data.DataSetExtensions
System.Data.Entity
System.Data.Entity.Design
System.Data.Linq
System.Data.SqlXml
System.ServiceModel
System.ServiceModel.Activation
System.ServiceModel.Activities
System.ServiceModel.Channels
System.ServiceModel.Discovery
System.ServiceModel.Internals
System.ServiceModel.Routing
System.ServiceModel.WasHosting
System.ServiceModel.Web
System.Web
System.Web.ApplicationServices
System.Web.DynamicData
System.Web.Entity
System.Web.Entity.Design
System.Web.Extensions
System.Web.Mobile
System.Web.Routing
System.Web.Services
System.Xml
System.Xml.Linq
2016-05-03 00:07:37 +02:00

50 lines
1.5 KiB
C#

//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Channels
{
using System.IO;
using System.Runtime;
public abstract class StreamUpgradeInitiator
{
protected StreamUpgradeInitiator()
{
}
public abstract string GetNextUpgrade();
public abstract Stream InitiateUpgrade(Stream stream);
public abstract IAsyncResult BeginInitiateUpgrade(Stream stream, AsyncCallback callback, object state);
public abstract Stream EndInitiateUpgrade(IAsyncResult result);
internal virtual IAsyncResult BeginOpen(TimeSpan timeout, AsyncCallback callback, object state)
{
return new CompletedAsyncResult(callback, state);
}
internal virtual void EndOpen(IAsyncResult result)
{
CompletedAsyncResult.End(result);
}
internal virtual IAsyncResult BeginClose(TimeSpan timeout, AsyncCallback callback, object state)
{
return new CompletedAsyncResult(callback, state);
}
internal virtual void EndClose(IAsyncResult result)
{
CompletedAsyncResult.End(result);
}
internal virtual void Open(TimeSpan timeout)
{
}
internal virtual void Close(TimeSpan timeout)
{
}
}
}