Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / HttpChannelBindingToken.cs / 1 / 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;
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
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;
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
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
- QualifiedId.cs
- EntityType.cs
- SubpageParaClient.cs
- CompareValidator.cs
- StandardToolWindows.cs
- IsolatedStorageFileStream.cs
- AuthenticationConfig.cs
- ThreadStartException.cs
- TdsEnums.cs
- XmlUrlResolver.cs
- OdbcTransaction.cs
- XmlNavigatorStack.cs
- AutoGeneratedFieldProperties.cs
- UserNameSecurityTokenAuthenticator.cs
- XmlComplianceUtil.cs
- SafePointer.cs
- CurrentTimeZone.cs
- InternalPolicyElement.cs
- SurrogateSelector.cs
- SelectingProviderEventArgs.cs
- Solver.cs
- XmlNodeChangedEventArgs.cs
- NavigateUrlConverter.cs
- StylusDownEventArgs.cs
- DataGridViewColumnEventArgs.cs
- ContextProperty.cs
- StyleCollection.cs
- httpserverutility.cs
- Marshal.cs
- GeneralTransform.cs
- ApplicationProxyInternal.cs
- MdImport.cs
- FilteredDataSetHelper.cs
- PageFunction.cs
- GenericUriParser.cs
- ResourceKey.cs
- DatagridviewDisplayedBandsData.cs
- SrgsDocumentParser.cs
- AccessDataSource.cs
- DataSourceProvider.cs
- ScriptRef.cs
- WebPartEventArgs.cs
- StringBuilder.cs
- Convert.cs
- ListSortDescription.cs
- figurelengthconverter.cs
- NotImplementedException.cs
- FlowDocument.cs
- NTAccount.cs
- BinaryObjectInfo.cs
- DataGridAutoFormatDialog.cs
- DataGridViewColumnConverter.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- HandleCollector.cs
- ContentPropertyAttribute.cs
- XmlSchemaSimpleTypeList.cs
- SettingsBindableAttribute.cs
- SystemBrushes.cs
- FontConverter.cs
- DataControlFieldHeaderCell.cs
- GridErrorDlg.cs
- Style.cs
- UndirectedGraph.cs
- RoutedPropertyChangedEventArgs.cs
- DataGridHyperlinkColumn.cs
- Style.cs
- WebPartsPersonalizationAuthorization.cs
- GridViewCancelEditEventArgs.cs
- StackSpiller.Bindings.cs
- UpdateRecord.cs
- CancellationHandlerDesigner.cs
- CompatibleComparer.cs
- LicFileLicenseProvider.cs
- SettingsPropertyWrongTypeException.cs
- ObjectConverter.cs
- MulticastOption.cs
- Geometry.cs
- LineSegment.cs
- HttpBrowserCapabilitiesWrapper.cs
- HttpWebResponse.cs
- BamlWriter.cs
- DataGridRelationshipRow.cs
- ObjectToIdCache.cs
- AnnotationStore.cs
- RegexRunner.cs
- IntegrationExceptionEventArgs.cs
- DataObjectAttribute.cs
- TemplateBindingExpressionConverter.cs
- EnumValidator.cs
- Geometry.cs
- DataGridViewRowsAddedEventArgs.cs
- NamedPipeWorkerProcess.cs
- WindowsButton.cs
- MessagePropertyVariants.cs
- SQLMoney.cs
- MaskDescriptors.cs
- BigInt.cs
- Lease.cs
- MarshalByRefObject.cs
- exports.cs