Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Runtime / Serialization / Formatters / Binary / BinaryMethodMessage.cs / 1 / BinaryMethodMessage.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== namespace System.Runtime.Serialization.Formatters.Binary { using System; using System.Collections; using System.Runtime.Remoting.Messaging; using System.Reflection; [Serializable()] internal sealed class BinaryMethodCallMessage { Object[] _inargs = null; String _methodName = null; String _typeName = null; Object _methodSignature = null; Type[] _instArgs = null; Object[] _args = null; LogicalCallContext _logicalCallContext = null; Object[] _properties = null; internal BinaryMethodCallMessage(String uri, String methodName, String typeName, Type[] instArgs, Object[] args, Object methodSignature, LogicalCallContext callContext, Object[] properties) { _methodName = methodName; _typeName = typeName; //_uri = uri; if (args == null) args = new Object[0]; _inargs = args; _args = args; _instArgs = instArgs; _methodSignature = methodSignature; if (callContext == null) _logicalCallContext = new LogicalCallContext(); else _logicalCallContext = callContext; _properties = properties; } public String MethodName { get {return _methodName;} } public String TypeName { get {return _typeName;} } public Type[] InstantiationArgs { get {return _instArgs;} } public Object MethodSignature { get {return _methodSignature;} } public Object[] Args { get {return _args;} } public LogicalCallContext LogicalCallContext { get {return _logicalCallContext;} } public bool HasProperties { get {return (_properties != null);} } internal void PopulateMessageProperties(IDictionary dict) { foreach (DictionaryEntry de in _properties) { dict[de.Key] = de.Value; } } } [Serializable()] internal class BinaryMethodReturnMessage { Object[] _outargs = null; Exception _exception = null; Object _returnValue = null; Object[] _args = null; LogicalCallContext _logicalCallContext = null; Object[] _properties = null; internal BinaryMethodReturnMessage(Object returnValue, Object[] args, Exception e, LogicalCallContext callContext, Object[] properties) { _returnValue = returnValue; if (args == null) args = new Object[0]; _outargs = args; _args= args; _exception = e; if (callContext == null) _logicalCallContext = new LogicalCallContext(); else _logicalCallContext = callContext; _properties = properties; } public Exception Exception { get {return _exception;} } public Object ReturnValue { get {return _returnValue;} } public Object[] Args { get {return _args;} } public LogicalCallContext LogicalCallContext { get {return _logicalCallContext;} } public bool HasProperties { get {return (_properties != null);} } internal void PopulateMessageProperties(IDictionary dict) { foreach (DictionaryEntry de in _properties) { dict[de.Key] = de.Value; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ManipulationPivot.cs
- DataGridViewLinkCell.cs
- ETagAttribute.cs
- WebPartVerbsEventArgs.cs
- SpStreamWrapper.cs
- CodeMethodInvokeExpression.cs
- TreeView.cs
- TypeInfo.cs
- Common.cs
- LineServices.cs
- CipherData.cs
- TraceSection.cs
- RewritingPass.cs
- bidPrivateBase.cs
- ResourceReferenceExpressionConverter.cs
- SafeArrayTypeMismatchException.cs
- MaskedTextBoxDesignerActionList.cs
- SQLDateTime.cs
- Mappings.cs
- QilInvoke.cs
- FormsAuthenticationUserCollection.cs
- EncryptedKey.cs
- SafeNativeMethods.cs
- DataPointer.cs
- ObjectParameterCollection.cs
- RijndaelManaged.cs
- DetailsViewDeletedEventArgs.cs
- SqlUserDefinedTypeAttribute.cs
- CalculatedColumn.cs
- MemberInfoSerializationHolder.cs
- SignatureDescription.cs
- ListViewItemSelectionChangedEvent.cs
- TraceSection.cs
- StreamUpdate.cs
- WorkflowDesignerMessageFilter.cs
- FilteredXmlReader.cs
- ControlEvent.cs
- MatrixTransform.cs
- StopStoryboard.cs
- COM2ExtendedTypeConverter.cs
- EntityWrapperFactory.cs
- SByte.cs
- MetadataSource.cs
- SamlAttributeStatement.cs
- QilXmlReader.cs
- InputScopeConverter.cs
- XamlTreeBuilder.cs
- MenuItemCollectionEditor.cs
- AdornerDecorator.cs
- AssociationSetMetadata.cs
- TcpChannelFactory.cs
- FileRecordSequence.cs
- SignatureToken.cs
- PrintingPermission.cs
- XPathParser.cs
- XmlBaseReader.cs
- XmlElement.cs
- ProfileModule.cs
- CornerRadius.cs
- BitArray.cs
- CategoryGridEntry.cs
- MessageProtectionOrder.cs
- GenericPrincipal.cs
- _SpnDictionary.cs
- HtmlAnchor.cs
- SingleStorage.cs
- HttpResponseHeader.cs
- SafeRegistryHandle.cs
- SolidColorBrush.cs
- LinqDataSource.cs
- ValueQuery.cs
- DataServiceExpressionVisitor.cs
- ListenerAdaptersInstallComponent.cs
- VarRemapper.cs
- TypeReference.cs
- WebPartDeleteVerb.cs
- DelegateSerializationHolder.cs
- CompressStream.cs
- WmlValidationSummaryAdapter.cs
- Variable.cs
- UITypeEditor.cs
- ModelPropertyCollectionImpl.cs
- ItemsPanelTemplate.cs
- SendMessageChannelCache.cs
- CollectionViewGroup.cs
- EngineSite.cs
- SQLInt64Storage.cs
- EndCreateSecurityTokenRequest.cs
- FontDialog.cs
- WebPartExportVerb.cs
- StringFormat.cs
- ADConnectionHelper.cs
- MessageEventSubscriptionService.cs
- FormViewPagerRow.cs
- SecUtil.cs
- SystemColors.cs
- LineGeometry.cs
- LinearKeyFrames.cs
- XmlSchemaObject.cs
- _BaseOverlappedAsyncResult.cs