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
- ApplicationManager.cs
- LinkedList.cs
- RoleServiceManager.cs
- Input.cs
- TransformCollection.cs
- CellNormalizer.cs
- XmlIncludeAttribute.cs
- SoapEnumAttribute.cs
- DynamicRenderer.cs
- FixUp.cs
- Typeface.cs
- Vector3DAnimation.cs
- SmiEventSink.cs
- TextOutput.cs
- SqlDataSourceEnumerator.cs
- ApplicationDirectory.cs
- AppSettingsReader.cs
- ReferenceTypeElement.cs
- TextAction.cs
- SmiMetaDataProperty.cs
- HelpEvent.cs
- DispatcherHooks.cs
- HttpDictionary.cs
- RuntimeConfigLKG.cs
- GridViewDeleteEventArgs.cs
- MenuEventArgs.cs
- MarginsConverter.cs
- TreeNodeConverter.cs
- OperationAbortedException.cs
- StructuralComparisons.cs
- LineGeometry.cs
- ToolStripManager.cs
- BinaryFormatterWriter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SqlBooleanMismatchVisitor.cs
- ActivationServices.cs
- DictionaryBase.cs
- ListSortDescription.cs
- ProviderConnectionPointCollection.cs
- SyncMethodInvoker.cs
- CacheEntry.cs
- CapabilitiesPattern.cs
- CatalogZone.cs
- XpsTokenContext.cs
- SByteConverter.cs
- HandlerBase.cs
- IdentityReference.cs
- DataRowExtensions.cs
- FigureHelper.cs
- ChannelManagerHelpers.cs
- OdbcEnvironmentHandle.cs
- ProcessInputEventArgs.cs
- Funcletizer.cs
- SqlProcedureAttribute.cs
- PathParser.cs
- PresentationSource.cs
- SecurityTokenInclusionMode.cs
- EntityStoreSchemaFilterEntry.cs
- CacheVirtualItemsEvent.cs
- ProxyHwnd.cs
- DirectoryInfo.cs
- LineBreakRecord.cs
- MailAddressCollection.cs
- ToolStripArrowRenderEventArgs.cs
- XmlSchemaType.cs
- DocumentGridContextMenu.cs
- DataControlFieldsEditor.cs
- Size.cs
- PaintValueEventArgs.cs
- PartialArray.cs
- MemberDescriptor.cs
- OneOfScalarConst.cs
- PointConverter.cs
- RegexFCD.cs
- DataGridViewCellStyle.cs
- PerformanceCounterCategory.cs
- PlacementWorkspace.cs
- mactripleDES.cs
- ChildrenQuery.cs
- DeadCharTextComposition.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- FileDialogCustomPlacesCollection.cs
- CodeArgumentReferenceExpression.cs
- OnOperation.cs
- AnimationLayer.cs
- FixedSOMLineCollection.cs
- HtmlTableRowCollection.cs
- ControlIdConverter.cs
- RegularExpressionValidator.cs
- SqlUnionizer.cs
- ListenerAdapterBase.cs
- RowUpdatingEventArgs.cs
- PropVariant.cs
- BlockUIContainer.cs
- StringValueSerializer.cs
- XmlQualifiedName.cs
- Win32Exception.cs
- ISCIIEncoding.cs
- ListViewContainer.cs
- DecimalConverter.cs