18 private static Type s_ObjRefType = typeof(
ObjRef);
20 private object _rootObj;
24 private RemotingSurrogate _remotingSurrogate =
new RemotingSurrogate();
26 private ObjRefSurrogate _objRefSurrogate =
new ObjRefSurrogate();
49 _messageSurrogate =
new MessageSurrogate(
this);
62 (_messageSurrogate as SoapMessageSurrogate)?.
SetRootObject(_rootObj);
95 return _remotingSurrogate;
100 return _messageSurrogate;
105 return _objRefSurrogate;
126 _messageSurrogate =
new SoapMessageSurrogate(
this);
127 ((SoapMessageSurrogate)_messageSurrogate).SetRootObject(_rootObj);
virtual ISurrogateSelector GetNextSelector()
Returns the next T:System.Runtime.Serialization.ISurrogateSelector in the chain of surrogate selector...
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Describes a set of security permissions applied to code. This class cannot be inherited.
virtual void UseSoapFormat()
Sets up the current surrogate selector to use the SOAP format.
Defines the method call return message interface.
Defines the method call message interface.
virtual void ChainSelector(ISurrogateSelector selector)
Adds the specified T:System.Runtime.Serialization.ISurrogateSelector to the surrogate selector chain.
Stores all relevant information required to generate a proxy in order to communicate with a remote ob...
ISerializationSurrogate GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector selector)
Finds the surrogate that represents the specified object's type, starting with the specified surrogat...
Describes the source and destination of a given serialized stream, and provides an additional caller-...
Selects the remoting surrogate that can be used to serialize an object that derives from a T:System....
void SetRootObject(object obj)
Sets the object at the root of the object graph.
SecurityAction
Specifies the security actions that can be performed using declarative security.
object GetRootObject()
Returns the object at the root of the object graph.
RemotingSurrogateSelector()
Initializes a new instance of the T:System.Runtime.Remoting.Messaging.RemotingSurrogateSelector class...
Implements a serialization surrogate selector that allows one object to perform serialization and des...
Represents type declarations: class types, interface types, array types, value types,...
virtual ISerializationSurrogate GetSurrogate(Type type, StreamingContext context, out ISurrogateSelector ssout)
Returns the appropriate surrogate for the given type in the given context.
Indicates a serialization surrogate selector class.
MessageSurrogateFilter Filter
Gets or sets the T:System.Runtime.Remoting.Messaging.MessageSurrogateFilter delegate for the current ...
bool IsMarshalByRef
Gets a value indicating whether the T:System.Type is marshaled by reference.
delegate bool MessageSurrogateFilter(string key, object value)
Determines whether the T:System.Runtime.Remoting.Messaging.RemotingSurrogateSelector class should ign...
SecurityPermissionFlag
Specifies access flags for the security permission object.
virtual bool IsAssignableFrom(Type c)
Determines whether an instance of a specified type can be assigned to an instance of the current type...