Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / HttpChannelBindingToken.cs / 1305376 / HttpChannelBindingToken.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* HttpChannelBindingToken class
*
* Copyright (c) 2008 Microsoft Corporation
*/
namespace System.Web {
using System.Security.Permissions;
using System.Security.Authentication.ExtendedProtection;
internal sealed class HttpChannelBindingToken : ChannelBinding {
private int _size;
internal HttpChannelBindingToken(IntPtr token, int tokenSize) {
SetHandle(token);
_size = tokenSize;
}
protected override bool ReleaseHandle() {
SetHandle(IntPtr.Zero);
_size = 0;
return true;
}
public override int Size {
get {
return _size;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* HttpChannelBindingToken class
*
* Copyright (c) 2008 Microsoft Corporation
*/
namespace System.Web {
using System.Security.Permissions;
using System.Security.Authentication.ExtendedProtection;
internal sealed class HttpChannelBindingToken : ChannelBinding {
private int _size;
internal HttpChannelBindingToken(IntPtr token, int tokenSize) {
SetHandle(token);
_size = tokenSize;
}
protected override bool ReleaseHandle() {
SetHandle(IntPtr.Zero);
_size = 0;
return true;
}
public override int Size {
get {
return _size;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StylusButton.cs
- KnownBoxes.cs
- ConnectionManagementElementCollection.cs
- SqlProviderServices.cs
- ObjRef.cs
- QueryTreeBuilder.cs
- ActivityBuilderHelper.cs
- Point4DValueSerializer.cs
- DbReferenceCollection.cs
- DiagnosticTraceSchemas.cs
- MultiAsyncResult.cs
- RTTypeWrapper.cs
- GenericRootAutomationPeer.cs
- SchemaHelper.cs
- Dump.cs
- XmlILModule.cs
- MaterialCollection.cs
- HttpsChannelFactory.cs
- ComponentDispatcherThread.cs
- MetadataCache.cs
- ItemDragEvent.cs
- SctClaimSerializer.cs
- FakeModelPropertyImpl.cs
- StateMachineTimers.cs
- DataContractSet.cs
- QilDataSource.cs
- HotSpot.cs
- BooleanExpr.cs
- ControlEvent.cs
- DiscriminatorMap.cs
- ValueExpressions.cs
- TdsRecordBufferSetter.cs
- TextChange.cs
- TransformGroup.cs
- SecurityRuntime.cs
- FlowSwitchLink.cs
- Activator.cs
- SizeLimitedCache.cs
- DiagnosticTraceSchemas.cs
- GridViewCellAutomationPeer.cs
- wgx_render.cs
- Point3DConverter.cs
- Function.cs
- ServerValidateEventArgs.cs
- OdbcError.cs
- DesignTimeType.cs
- StandardOleMarshalObject.cs
- ErrorTableItemStyle.cs
- FlowDocumentPageViewerAutomationPeer.cs
- AppearanceEditorPart.cs
- IPHostEntry.cs
- XamlSerializationHelper.cs
- SequenceDesigner.cs
- ZipPackage.cs
- TableRow.cs
- LinqDataSourceDisposeEventArgs.cs
- FreezableOperations.cs
- PropertyPathConverter.cs
- EntityRecordInfo.cs
- CurrencyWrapper.cs
- RowType.cs
- AnimationClock.cs
- TypeConverterBase.cs
- ControlBuilder.cs
- SHA512Managed.cs
- PowerModeChangedEventArgs.cs
- ToolStripControlHost.cs
- embossbitmapeffect.cs
- StylusPointPropertyInfoDefaults.cs
- SRDisplayNameAttribute.cs
- ScriptServiceAttribute.cs
- RuleAttributes.cs
- Models.cs
- SchemaDeclBase.cs
- SQLStringStorage.cs
- AsmxEndpointPickerExtension.cs
- ReferenceEqualityComparer.cs
- RSAOAEPKeyExchangeFormatter.cs
- SafeBitVector32.cs
- XmlKeywords.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- EntryWrittenEventArgs.cs
- WebResourceUtil.cs
- ExpressionLexer.cs
- ValidatedMobileControlConverter.cs
- MultiBinding.cs
- MeshGeometry3D.cs
- SerializationStore.cs
- EllipseGeometry.cs
- BamlRecords.cs
- ImageSource.cs
- CodeVariableReferenceExpression.cs
- X509Utils.cs
- WebExceptionStatus.cs
- WorkflowInstanceRecord.cs
- RegexBoyerMoore.cs
- SqlParameterCollection.cs
- TransactionScope.cs
- RuntimeEnvironment.cs
- ActiveXHost.cs