Code:
/ FX-1434 / FX-1434 / 1.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
- EventLogPermission.cs
- FormViewPagerRow.cs
- RangeBase.cs
- ADMembershipProvider.cs
- PasswordTextContainer.cs
- NavigationCommands.cs
- input.cs
- Nodes.cs
- ControlCachePolicy.cs
- Trace.cs
- unitconverter.cs
- SiteMapNode.cs
- COM2IProvidePropertyBuilderHandler.cs
- DataGridViewRowStateChangedEventArgs.cs
- BigInt.cs
- UnregisterInfo.cs
- RepeaterItemEventArgs.cs
- AssociationTypeEmitter.cs
- TempFiles.cs
- PeerContact.cs
- CollectionBase.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- ShapeTypeface.cs
- StsCommunicationException.cs
- AllMembershipCondition.cs
- SignatureHelper.cs
- AnnotationService.cs
- PatternMatcher.cs
- ReliableChannelListener.cs
- BooleanFunctions.cs
- OleDbDataAdapter.cs
- CmsInterop.cs
- DockingAttribute.cs
- BaseDataList.cs
- IPipelineRuntime.cs
- DataControlButton.cs
- GridToolTip.cs
- SessionStateItemCollection.cs
- BasicExpressionVisitor.cs
- XPathAncestorQuery.cs
- isolationinterop.cs
- NativeMethods.cs
- Relationship.cs
- BindingGroup.cs
- PageParser.cs
- Script.cs
- FileLevelControlBuilderAttribute.cs
- ExitEventArgs.cs
- shaperfactoryquerycachekey.cs
- ConstraintStruct.cs
- ObfuscationAttribute.cs
- validationstate.cs
- BaseParaClient.cs
- WebPartConnectVerb.cs
- SolidBrush.cs
- EventArgs.cs
- SqlExpressionNullability.cs
- HttpRawResponse.cs
- SqlNotificationRequest.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- CompilerScopeManager.cs
- DefaultValueTypeConverter.cs
- TreeWalkHelper.cs
- XmlNavigatorFilter.cs
- StringArrayConverter.cs
- SqlConnectionFactory.cs
- AsyncPostBackErrorEventArgs.cs
- SeparatorAutomationPeer.cs
- CodeSnippetExpression.cs
- ListBindingConverter.cs
- CodeGenerator.cs
- ListViewTableCell.cs
- Connection.cs
- ResXFileRef.cs
- HttpRequest.cs
- WebDisplayNameAttribute.cs
- DictionaryTraceRecord.cs
- ValidationHelper.cs
- _ProxyChain.cs
- DataSourceGroupCollection.cs
- StringValueSerializer.cs
- HMACSHA1.cs
- AnnotationStore.cs
- DoubleLinkListEnumerator.cs
- SystemKeyConverter.cs
- BindingGroup.cs
- ListViewDataItem.cs
- MainMenu.cs
- SafeBitVector32.cs
- DataGridViewCellStateChangedEventArgs.cs
- ObjectStorage.cs
- BitmapEffectGroup.cs
- ToolboxDataAttribute.cs
- ProxyWebPartConnectionCollection.cs
- UnauthorizedWebPart.cs
- WebBrowserBase.cs
- MemberPathMap.cs
- Helper.cs
- figurelengthconverter.cs
- GridViewColumnCollection.cs