Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / BeginCreateSecurityTokenRequest.cs / 1 / BeginCreateSecurityTokenRequest.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.InfoCards { using Microsoft.Win32.SafeHandles; using System; using System.Collections; using System.Diagnostics; using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.IO; using IDT = Microsoft.InfoCards.Diagnostics.InfoCardTrace; // // Summary: // Request class for starting the CreateToken processes. // internal class BeginCreateSecurityTokenRequest : UIAgentAsyncBeginRequest { bool m_discloseOptional; TokenFactoryCredential m_credential; // // Summary: // Create a new CreateSecurityTokenRequest // // Arguments: // rpcHandle: The RPC Context handle. // inArgs: The stream to hold the input arguments // outArgs: The stream to hold the output arguments // parent: the parent UI Request // public BeginCreateSecurityTokenRequest( IntPtr rpcHandle, Stream inArgs, Stream outArgs, ClientUIRequest parent ) : base( rpcHandle, inArgs, outArgs, parent ) { } // // Summary: // Marshals the incoming arguements // // Remarks: // creates the TokenFactoryCredential from the input stream. // protected override void OnMarshalAsyncInArgs( BinaryReader reader ) { // // First marshal the raw arguments. // m_discloseOptional = reader.ReadBoolean(); m_credential = TokenFactoryCredential.CreateFrom( reader, this, ParentRequest.UserLanguage ); } // // Summary: // The Async call to create a security token. // // Remarks: // Running on threadpool thread. // protected override object AsyncExecute( AsyncParams asyncParam ) { return ((GetTokenRequest)ParentRequest).CreateSecurityToken( m_credential, m_discloseOptional ); } // // Summary: // The Async call to cancel create a security token. // protected override void AsyncCancel() { ((GetTokenRequest)ParentRequest).CancelCreateSecurityToken( ); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CapabilitiesState.cs
- BamlResourceContent.cs
- SimpleHandlerBuildProvider.cs
- HebrewNumber.cs
- TableRowCollection.cs
- _ChunkParse.cs
- StaticDataManager.cs
- XmlRootAttribute.cs
- RegistryKey.cs
- DefaultParameterValueAttribute.cs
- MatrixAnimationUsingPath.cs
- XPathNodeIterator.cs
- MimeTypePropertyAttribute.cs
- EncoderFallback.cs
- PropertyGeneratedEventArgs.cs
- ContextStack.cs
- MsmqInputChannelListenerBase.cs
- DocumentXPathNavigator.cs
- MergePropertyDescriptor.cs
- XmlRawWriter.cs
- CssStyleCollection.cs
- BeginStoryboard.cs
- ZipIOExtraFieldZip64Element.cs
- JavaScriptObjectDeserializer.cs
- QilXmlReader.cs
- SQLCharsStorage.cs
- WebPartTracker.cs
- GACMembershipCondition.cs
- UrlMappingCollection.cs
- SizeAnimationUsingKeyFrames.cs
- EntityFrameworkVersions.cs
- HtmlShim.cs
- StreamGeometryContext.cs
- FileDetails.cs
- EarlyBoundInfo.cs
- FunctionUpdateCommand.cs
- TagMapCollection.cs
- HwndHostAutomationPeer.cs
- SchemaCollectionPreprocessor.cs
- XmlSchemaSubstitutionGroup.cs
- JapaneseLunisolarCalendar.cs
- ClipboardProcessor.cs
- TraceSection.cs
- _OverlappedAsyncResult.cs
- AvTraceFormat.cs
- InvalidFilterCriteriaException.cs
- ToolStripItemBehavior.cs
- COM2Properties.cs
- OutputCacheProfileCollection.cs
- ADMembershipUser.cs
- mongolianshape.cs
- BackgroundFormatInfo.cs
- XmlCustomFormatter.cs
- XhtmlTextWriter.cs
- ListViewEditEventArgs.cs
- ContainerParagraph.cs
- cache.cs
- ViewManager.cs
- ErrorTableItemStyle.cs
- _ProxyRegBlob.cs
- XmlSchemaImporter.cs
- XamlSerializerUtil.cs
- DynamicDataRoute.cs
- Attribute.cs
- XNodeValidator.cs
- WindowsContainer.cs
- PersonalizationStateInfo.cs
- XhtmlMobileTextWriter.cs
- ListView.cs
- RawStylusInput.cs
- OleDbRowUpdatingEvent.cs
- EventPrivateKey.cs
- TabItem.cs
- DataGridCommandEventArgs.cs
- WsdlBuildProvider.cs
- CollectionConverter.cs
- DesignerContextDescriptor.cs
- ReadOnlyDictionary.cs
- ProviderConnectionPoint.cs
- DelegateHelpers.Generated.cs
- Codec.cs
- BevelBitmapEffect.cs
- ControlCachePolicy.cs
- EditorAttribute.cs
- configsystem.cs
- DataStreams.cs
- ListMarkerSourceInfo.cs
- PersonalizationStateInfo.cs
- RegexTree.cs
- HelpKeywordAttribute.cs
- FlowLayoutSettings.cs
- Help.cs
- ExpressionBindingCollection.cs
- TargetConverter.cs
- EventsTab.cs
- XmlSerializationGeneratedCode.cs
- ColumnReorderedEventArgs.cs
- InvalidProgramException.cs
- PlatformCulture.cs
- DelayedRegex.cs