Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } } // 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
- JournalEntryListConverter.cs
- EntityCommand.cs
- AssemblyInfo.cs
- ObservableCollection.cs
- TripleDES.cs
- TaiwanLunisolarCalendar.cs
- ReflectTypeDescriptionProvider.cs
- BufferModesCollection.cs
- SqlBuilder.cs
- HostProtectionException.cs
- StaticContext.cs
- TextUtf8RawTextWriter.cs
- Compensation.cs
- ToolStripRenderer.cs
- BaseDataBoundControl.cs
- DataRecordInfo.cs
- SQLInt32.cs
- OleDbStruct.cs
- NotCondition.cs
- MsmqIntegrationChannelListener.cs
- securestring.cs
- DataListItem.cs
- TagPrefixAttribute.cs
- ThreadPool.cs
- Drawing.cs
- BindingListCollectionView.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- SoapObjectWriter.cs
- StatusBar.cs
- AppDomainResourcePerfCounters.cs
- StylusPoint.cs
- RegexNode.cs
- X509Certificate2Collection.cs
- EntityWithKeyStrategy.cs
- ToolStripArrowRenderEventArgs.cs
- TraceInternal.cs
- RuleSetDialog.Designer.cs
- PartitionResolver.cs
- ColumnResizeAdorner.cs
- Compiler.cs
- __Filters.cs
- DataGridItemCollection.cs
- EntityDataSourceColumn.cs
- XsdDuration.cs
- Rectangle.cs
- FaultHandlingFilter.cs
- HttpFileCollection.cs
- EntityDataSourceQueryBuilder.cs
- Socket.cs
- FormViewUpdatedEventArgs.cs
- basemetadatamappingvisitor.cs
- DbgCompiler.cs
- MD5CryptoServiceProvider.cs
- EmptyQuery.cs
- DetailsViewUpdatedEventArgs.cs
- Comparer.cs
- safex509handles.cs
- PropertyMapper.cs
- EmissiveMaterial.cs
- BindingNavigator.cs
- RepeaterItemCollection.cs
- MetadataCollection.cs
- SplashScreen.cs
- ExitEventArgs.cs
- IconEditor.cs
- OdbcConnectionFactory.cs
- Int16KeyFrameCollection.cs
- ConfigurationManager.cs
- WorkflowClientDeliverMessageWrapper.cs
- AssemblyCollection.cs
- DataStorage.cs
- RemotingSurrogateSelector.cs
- EventLogPermissionEntry.cs
- SoapConverter.cs
- TreeViewDesigner.cs
- webclient.cs
- RevocationPoint.cs
- Translator.cs
- ReadOnlyCollection.cs
- CoTaskMemHandle.cs
- Environment.cs
- JsonEncodingStreamWrapper.cs
- LinearQuaternionKeyFrame.cs
- QilXmlWriter.cs
- CloudCollection.cs
- FindCriteria.cs
- XmlCharacterData.cs
- DispatcherOperation.cs
- BitmapVisualManager.cs
- DefaultValueConverter.cs
- localization.cs
- Literal.cs
- IResourceProvider.cs
- bidPrivateBase.cs
- SizeConverter.cs
- CultureSpecificCharacterBufferRange.cs
- DefaultPropertiesToSend.cs
- MailHeaderInfo.cs
- AsymmetricSignatureDeformatter.cs
- MulticastNotSupportedException.cs