本文整理汇总了C#中System.Runtime.Remoting.ObjRef.GetDomainID方法的典型用法代码示例。如果您正苦于以下问题:C# ObjRef.GetDomainID方法的具体用法?C# ObjRef.GetDomainID怎么用?C# ObjRef.GetDomainID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Runtime.Remoting.ObjRef
的用法示例。
在下文中一共展示了ObjRef.GetDomainID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ObjRef
private ObjRef(ObjRef o)
{
this.uri = o.uri;
this.typeInfo = o.typeInfo;
this.envoyInfo = o.envoyInfo;
this.channelInfo = o.channelInfo;
this.objrefFlags = o.objrefFlags;
this.SetServerIdentity(o.GetServerIdentity());
this.SetDomainID(o.GetDomainID());
}
示例2: CreateProxy
public virtual RealProxy CreateProxy(ObjRef objRef, Type serverType, object serverObject, Context serverContext)
{
RemotingProxy rp = new RemotingProxy(serverType);
if (serverContext != null)
{
RealProxy.SetStubData(rp, serverContext.InternalContextID);
}
if ((objRef != null) && objRef.GetServerIdentity().IsAllocated)
{
rp.SetSrvInfo(objRef.GetServerIdentity(), objRef.GetDomainID());
}
rp.Initialized = true;
Type type = serverType;
if ((!type.IsContextful && !type.IsMarshalByRef) && (serverContext != null))
{
throw new RemotingException(Environment.GetResourceString("Remoting_Activation_MBR_ProxyAttribute"));
}
return rp;
}
示例3: ObjRef
[System.Security.SecurityCritical] // auto-generated
private ObjRef(ObjRef o)
{
BCLDebug.Assert(o.GetType() == typeof(ObjRef), "this should be just an ObjRef");
uri = o.uri;
typeInfo = o.typeInfo;
envoyInfo = o.envoyInfo;
channelInfo = o.channelInfo;
objrefFlags = o.objrefFlags;
SetServerIdentity(o.GetServerIdentity());
SetDomainID(o.GetDomainID());
} // ObjRef