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
- DBDataPermissionAttribute.cs
- hwndwrapper.cs
- SizeFConverter.cs
- CodeMemberEvent.cs
- SingleObjectCollection.cs
- TripleDESCryptoServiceProvider.cs
- SafeFindHandle.cs
- Emitter.cs
- DataViewSetting.cs
- DesignerLoader.cs
- EventLogger.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TextBox.cs
- Semaphore.cs
- XmlCharCheckingReader.cs
- MultiByteCodec.cs
- WebPartsPersonalization.cs
- EditorPart.cs
- InstanceStore.cs
- DelayLoadType.cs
- FormsAuthenticationUserCollection.cs
- PropertyCondition.cs
- smtpconnection.cs
- ListSortDescriptionCollection.cs
- PrinterUnitConvert.cs
- DiffuseMaterial.cs
- AsyncStreamReader.cs
- TemplateContentLoader.cs
- EffectiveValueEntry.cs
- CachedRequestParams.cs
- UInt16.cs
- WindowsToolbar.cs
- MetadataItemSerializer.cs
- EqualityComparer.cs
- FontSourceCollection.cs
- NamespaceQuery.cs
- StrongTypingException.cs
- DataList.cs
- SqlAggregateChecker.cs
- SqlNamer.cs
- Completion.cs
- IndexedString.cs
- GeneralTransformGroup.cs
- ObjRef.cs
- ComponentEvent.cs
- x509store.cs
- PerfCounterSection.cs
- InputLanguageCollection.cs
- NonBatchDirectoryCompiler.cs
- ConfigurationValidatorAttribute.cs
- Transform.cs
- NestedContainer.cs
- X509ClientCertificateCredentialsElement.cs
- SQLDoubleStorage.cs
- FontFamily.cs
- XPathNavigatorException.cs
- Hashtable.cs
- HttpBrowserCapabilitiesWrapper.cs
- DataGridComboBoxColumn.cs
- SendMailErrorEventArgs.cs
- FlagsAttribute.cs
- SetIterators.cs
- Geometry3D.cs
- ScrollChrome.cs
- BooleanSwitch.cs
- LinearKeyFrames.cs
- ColumnWidthChangingEvent.cs
- Encoding.cs
- AxHost.cs
- ObjectDataSourceMethodEventArgs.cs
- XPathAncestorIterator.cs
- SafeFileMapViewHandle.cs
- ListComponentEditorPage.cs
- DataMisalignedException.cs
- SmtpNetworkElement.cs
- AddingNewEventArgs.cs
- CodeIterationStatement.cs
- InstanceDataCollection.cs
- ReachNamespaceInfo.cs
- OwnerDrawPropertyBag.cs
- MemberAssignmentAnalysis.cs
- PageVisual.cs
- UdpTransportSettingsElement.cs
- CrossContextChannel.cs
- XmlUtilWriter.cs
- EmptyQuery.cs
- QuaternionRotation3D.cs
- XmlHelper.cs
- SHA1CryptoServiceProvider.cs
- ProxyGenerator.cs
- BufferedOutputStream.cs
- TraceSource.cs
- KnownTypes.cs
- ZipIOModeEnforcingStream.cs
- CustomActivityDesigner.cs
- HttpPostLocalhostServerProtocol.cs
- VisualBasicDesignerHelper.cs
- ToolStripPanelRenderEventArgs.cs
- XmlILIndex.cs
- SqlAggregateChecker.cs