public abstract class RemotingClientProxy : Component
|
AllowAutoRedirect | Read-write Gets or sets a value indicating whether the automatic handling of server redirects is enabled. |
Container (inherited from System.ComponentModel.Component) |
Read-only See base class member description: System.ComponentModel.Component.Container Gets the IContainer that contains the Component. |
Cookies | Read-only Gets the cookies received from the server that will be sent back on requests that match the cookie's path. |
Domain | Read-write Gets or sets the domain name to be used for basic authentication and digest authentication. |
EnableCookies | Read-write |
Password | Read-write Gets or sets the password to use for basic authentication and digest authentication. |
Path | Read-write Gets or sets the base URL to the server to use for requests. |
PreAuthenticate | Read-write Gets or sets a value indicating whether preauthentication of requests is enabled. |
ProxyName | Read-write Gets or sets the name of the proxy server to use for requests. |
ProxyPort | Read-write Gets or sets the port number of the proxy server to use for requests. |
Site (inherited from System.ComponentModel.Component) |
Read-write See base class member description: System.ComponentModel.Component.Site Gets or sets the ISite of the Component. |
Timeout | Read-write Gets or sets the time-out in milliseconds to use for synchronous calls. |
Url | Read-write Gets or sets the base URL to the server to use for requests. |
UserAgent | Read-write Gets or sets the user agent HTTP header for the request. |
Username | Read-write Gets or sets the user name to send for basic authentication and digest authentication. |
CreateObjRef (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
Dispose (inherited from System.ComponentModel.Component) |
Overloaded:Dispose() See base class member description: System.ComponentModel.Component.DisposeReleases all resources used by the Component. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetLifetimeService (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
InitializeLifetimeService (inherited from System.MarshalByRefObject) |
See base class member description: System.MarshalByRefObject.InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
Disposed (inherited from System.ComponentModel.Component) |
See base class member description: System.ComponentModel.Component.Disposed Adds an event handler to listen to the Component.Disposed event on the component. |
ctor #1 | Default constructor. This constructor is called by derived class constructors to initialize state in this type. |
_tp | The Transparent Proxy inside the RemotingClientProxy object. |
_type | Indicates the Type of the object that the current proxy represents. |
_url | Indicates the URL of the object that the current proxy represents. |
DesignMode (inherited from System.ComponentModel.Component) |
Read-only See base class member description: System.ComponentModel.Component.DesignMode Gets a value that indicates whether the Component is currently in design mode. |
Events (inherited from System.ComponentModel.Component) |
Read-only See base class member description: System.ComponentModel.Component.Events Gets the list of event handlers that are attached to this Component. |
ConfigureProxy | Internal. Automatically configures the proxy by loading the channels if they are not already loaded and creating the proxy. |
ConnectProxy | Internal. Connects the proxy to the remoting channel specified by the RemotingClientProxy.Url property. |
Dispose (inherited from System.ComponentModel.Component) |
Overloaded:Dispose(bool disposing) See base class member description: System.ComponentModel.Component.DisposeReleases the unmanaged resources used by the Component and optionally releases the managed resources. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
GetService (inherited from System.ComponentModel.Component) |
See base class member description: System.ComponentModel.Component.GetService Returns an object that represents a service provided by the Component or by its Container. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
protected RemotingClientProxy(); |
protected object _tp;
|
protected Type _type;
|
protected string _url;
|
public bool AllowAutoRedirect {get; set;}
|
public IContainer Container {get;}
|
public object Cookies {get;}
|
protected bool DesignMode {get;}
|
public string Domain {get; set;}
|
public bool EnableCookies {get; set;}
|
protected EventHandlerList Events {get;}
|
public string Password {get; set;}
|
public string Path {get; set;}
|
public bool PreAuthenticate {get; set;}
|
public string ProxyName {get; set;}
|
public int ProxyPort {get; set;}
|
public virtual ISite Site {get; set;}
|
The property value is null if the Component is removed from its IContainer. Assigning null to this property does not necessarily remove the Component from the IContainer.
A Component might or might not have a name. If a Component is given a name, the name must be unique among other Component objects within its IContainer. The ISite stores the name of the Component; therefore, you can only name a Component if it has an ISite associated with it.
public int Timeout {get; set;}
|
public string Url {get; set;}
|
public string UserAgent {get; set;}
|
public string Username {get; set;}
|
type
url
protected void ConnectProxy(); |
requestedType
Exception Type | Condition |
---|---|
RemotingException | This instance is not a valid remoting object. |
public void Dispose(); |
protected virtual void Dispose( |
disposing
When the disposing parameter is true, this method releases all resources held by any managed objects that this Component references. This method invokes the Dispose() method of each referenced object.
For more information about Dispose and Object.Finalize, see the conceptual topic at MSDN: cleaningupunmanagedresources and the conceptual topic at MSDN: overridingfinalizemethod.
~RemotingClientProxy(); |
public virtual int GetHashCode(); |
public object GetLifetimeService(); |
service
This value is null if the Component does not provide the specified service.
public Type GetType(); |
public virtual object InitializeLifetimeService(); |
public class MyClass : MarshalByRefObject { public override Object InitializeLifetimeService() { ILease lease = (ILease)base.InitializeLifetimeService(); if (lease.CurrentState == LeaseState.Initial) { lease.InitialLeaseTime = TimeSpan.FromMinutes(1); lease.SponsorshipTimeout = TimeSpan.FromMinutes(2); lease.RenewOnCallTime = TimeSpan.FromSeconds(2); } return lease; } }
protected object MemberwiseClone(); |
public virtual string ToString(); |
public event EventHandler Disposed;
|