Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / SendingRequestEventArgs.cs / 1305376 / SendingRequestEventArgs.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Event args for the event fired before executing a web request. Gives a // chance to customize or replace the request object to be used. // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; using System.Diagnostics; ////// Event args for the event fired before executing a web request. Gives a /// chance to customize or replace the request object to be used. /// public class SendingRequestEventArgs : EventArgs { ///The web request reported through this event #if ASTORIA_LIGHT [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields", Justification = "Not used in Silverlight")] #endif private System.Net.WebRequest request; ///The request header collection. private System.Net.WebHeaderCollection requestHeaders; ////// Constructor /// /// The request reported through this event /// The request header collection. internal SendingRequestEventArgs(System.Net.WebRequest request, System.Net.WebHeaderCollection requestHeaders) { // In Silverlight the request object is not accesible #if ASTORIA_LIGHT Debug.Assert(null == request, "non-null request in SL."); #else Debug.Assert(null != request, "null request"); #endif Debug.Assert(null != requestHeaders, "null requestHeaders"); this.request = request; this.requestHeaders = requestHeaders; } #if !ASTORIA_LIGHT // Data.Services http stack ///The web request reported through this event. The handler may modify or replace it. public System.Net.WebRequest Request { get { return this.request; } set { Util.CheckArgumentNull(value, "value"); if (!(value is System.Net.HttpWebRequest)) { throw Error.Argument(Strings.Context_SendingRequestEventArgsNotHttp, "value"); } this.request = value; this.requestHeaders = value.Headers; } } #endif ///The request header collection. public System.Net.WebHeaderCollection RequestHeaders { get { return this.requestHeaders; } } } } // 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
- CryptoHelper.cs
- HostingEnvironmentException.cs
- TextLineResult.cs
- ZipPackage.cs
- PhonemeConverter.cs
- OrderedDictionary.cs
- TextParagraphView.cs
- AssociationSet.cs
- AnimationException.cs
- QueryResult.cs
- diagnosticsswitches.cs
- OdbcConnectionPoolProviderInfo.cs
- IPAddressCollection.cs
- CodeDirectiveCollection.cs
- OdbcReferenceCollection.cs
- DataGridPreparingCellForEditEventArgs.cs
- XmlNamespaceManager.cs
- SmiTypedGetterSetter.cs
- EntityDataSource.cs
- Component.cs
- webbrowsersite.cs
- DataViewManager.cs
- Attachment.cs
- TemplateBindingExtensionConverter.cs
- DivideByZeroException.cs
- ChannelBinding.cs
- DataFormats.cs
- TaskForm.cs
- ByValueEqualityComparer.cs
- PassportAuthenticationModule.cs
- SocketAddress.cs
- RoutingExtension.cs
- SqlDeflator.cs
- LifetimeServices.cs
- HttpFileCollection.cs
- ToolStripPanelDesigner.cs
- RequestCachingSection.cs
- MatrixCamera.cs
- SecureConversationServiceElement.cs
- ClonableStack.cs
- CoTaskMemHandle.cs
- DocumentPageView.cs
- FileBasedResourceGroveler.cs
- GZipDecoder.cs
- HitTestDrawingContextWalker.cs
- HttpWebRequest.cs
- ReadOnlyCollectionBuilder.cs
- TriggerCollection.cs
- ConditionChanges.cs
- DbDeleteCommandTree.cs
- CacheEntry.cs
- LogAppendAsyncResult.cs
- ComponentCommands.cs
- TemplatedMailWebEventProvider.cs
- WpfMemberInvoker.cs
- WebPartDescriptionCollection.cs
- ButtonBaseAutomationPeer.cs
- TextView.cs
- SecurityUtils.cs
- BaseAsyncResult.cs
- BuildDependencySet.cs
- DesignerCategoryAttribute.cs
- TableRowsCollectionEditor.cs
- Propagator.JoinPropagator.cs
- WebPartsPersonalization.cs
- ObjectContextServiceProvider.cs
- DataGridViewToolTip.cs
- WindowsTab.cs
- EntityDataSourceReferenceGroup.cs
- BitmapPalettes.cs
- ConfigurationSchemaErrors.cs
- PermissionToken.cs
- Config.cs
- wgx_render.cs
- Encoding.cs
- Point3DValueSerializer.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- TextAutomationPeer.cs
- Int32Animation.cs
- IDReferencePropertyAttribute.cs
- ModelPropertyDescriptor.cs
- DocumentViewerHelper.cs
- FixedPageAutomationPeer.cs
- GenericUriParser.cs
- SqlPersonalizationProvider.cs
- SqlDeflator.cs
- XmlSchemaInfo.cs
- TreeNodeStyleCollection.cs
- ClientCultureInfo.cs
- SerializationInfoEnumerator.cs
- Comparer.cs
- ResourceLoader.cs
- LinqDataSourceInsertEventArgs.cs
- KnownTypeHelper.cs
- SerializationFieldInfo.cs
- FileBasedResourceGroveler.cs
- CodeMethodInvokeExpression.cs
- XmlILTrace.cs
- XmlTypeMapping.cs
- FormParameter.cs