66 lines
1.9 KiB
C#
66 lines
1.9 KiB
C#
using System;
|
|
using System.Runtime.Remoting.Messaging;
|
|
|
|
namespace System.Runtime.Remoting
|
|
{
|
|
// Token: 0x02000450 RID: 1104
|
|
internal class ClientActivatedIdentity : ServerIdentity
|
|
{
|
|
// Token: 0x06002A9C RID: 10908 RVA: 0x0008A1E4 File Offset: 0x000883E4
|
|
public ClientActivatedIdentity(string objectUri, Type objectType)
|
|
: base(objectUri, null, objectType)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06002A9D RID: 10909 RVA: 0x0008A1F0 File Offset: 0x000883F0
|
|
public MarshalByRefObject GetServerObject()
|
|
{
|
|
return this._serverObject;
|
|
}
|
|
|
|
// Token: 0x06002A9E RID: 10910 RVA: 0x0008A1F8 File Offset: 0x000883F8
|
|
public MarshalByRefObject GetClientProxy()
|
|
{
|
|
return this._targetThis;
|
|
}
|
|
|
|
// Token: 0x06002A9F RID: 10911 RVA: 0x0008A200 File Offset: 0x00088400
|
|
public void SetClientProxy(MarshalByRefObject obj)
|
|
{
|
|
this._targetThis = obj;
|
|
}
|
|
|
|
// Token: 0x06002AA0 RID: 10912 RVA: 0x0008A20C File Offset: 0x0008840C
|
|
public override void OnLifetimeExpired()
|
|
{
|
|
base.OnLifetimeExpired();
|
|
RemotingServices.DisposeIdentity(this);
|
|
}
|
|
|
|
// Token: 0x06002AA1 RID: 10913 RVA: 0x0008A21C File Offset: 0x0008841C
|
|
public override IMessage SyncObjectProcessMessage(IMessage msg)
|
|
{
|
|
if (this._serverSink == null)
|
|
{
|
|
bool flag = this._targetThis != null;
|
|
this._serverSink = this._context.CreateServerObjectSinkChain((!flag) ? this._serverObject : this._targetThis, flag);
|
|
}
|
|
return this._serverSink.SyncProcessMessage(msg);
|
|
}
|
|
|
|
// Token: 0x06002AA2 RID: 10914 RVA: 0x0008A278 File Offset: 0x00088478
|
|
public override IMessageCtrl AsyncObjectProcessMessage(IMessage msg, IMessageSink replySink)
|
|
{
|
|
if (this._serverSink == null)
|
|
{
|
|
bool flag = this._targetThis != null;
|
|
this._serverSink = this._context.CreateServerObjectSinkChain((!flag) ? this._serverObject : this._targetThis, flag);
|
|
}
|
|
return this._serverSink.AsyncProcessMessage(msg, replySink);
|
|
}
|
|
|
|
// Token: 0x04001050 RID: 4176
|
|
private MarshalByRefObject _targetThis;
|
|
}
|
|
}
|