Beispiel #1
0
        // shallow copy constructor used for smuggling.
        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;
        } // ObjRef
Beispiel #2
0
        // shallow copy constructor used for smuggling.
        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
Beispiel #3
0
        } // ShouldUseUrlObjRef

        // Check whether the objref is well formed
        internal static bool IsWellFormed(ObjRef objectRef)
        {
            // We skip the wellformed check for wellKnown,
            // objref-lite and custom objrefs
            bool wellFormed = true;

            if ((null == objectRef) ||
                (null == objectRef.URI) ||
                (!(objectRef.IsWellKnown() || objectRef.IsObjRefLite() ||
                   objectRef.GetType() != orType) &&
                 (null == objectRef.ChannelInfo)))
            {
                wellFormed = false;
            }

            return(wellFormed);
        }
Beispiel #4
0
        } // ShouldUseUrlObjRef
        

        // Check whether the objref is well formed
        internal static bool IsWellFormed(ObjRef objectRef)
        {
            // We skip the wellformed check for wellKnown, 
            // objref-lite and custom objrefs
            bool wellFormed = true;
            if (   (null == objectRef)     
                || (null == objectRef.URI) 
                || (!(objectRef.IsWellKnown()  
                      || objectRef.IsObjRefLite() 
                      || objectRef.GetType() != orType
                     ) 
                    && (null == objectRef.ChannelInfo)
                   )
               )
            {
                wellFormed = false;
            }

            return wellFormed;
        }
Beispiel #5
0
        // shallow copy constructor used for smuggling.
        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;
        } // ObjRef
Beispiel #6
0
        [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 
 internal static bool IsWellFormed(ObjRef objectRef)
 {
     bool flag = true;
     return ((((objectRef != null) && (objectRef.URI != null)) && ((objectRef.IsWellKnown() || objectRef.IsObjRefLite()) || ((objectRef.GetType() != orType) || (objectRef.ChannelInfo != null)))) && flag);
 }
        internal static bool IsWellFormed(ObjRef objectRef)
        {
            bool result = true;

            if (objectRef == null || objectRef.URI == null || (!objectRef.IsWellKnown() && !objectRef.IsObjRefLite() && !(objectRef.GetType() != ObjRef.orType) && objectRef.ChannelInfo == null))
            {
                result = false;
            }
            return(result);
        }
Beispiel #9
0
        internal static bool IsWellFormed(ObjRef objectRef)
        {
            bool flag = true;

            if (objectRef == null || objectRef.URI == null || !objectRef.IsWellKnown() && !objectRef.IsObjRefLite() && (!(objectRef.GetType() != ObjRef.orType) && objectRef.ChannelInfo == null))
            {
                flag = false;
            }
            return(flag);
        }
Beispiel #10
0
        internal static bool IsWellFormed(ObjRef objectRef)
        {
            bool flag = true;

            return((((objectRef != null) && (objectRef.URI != null)) && ((objectRef.IsWellKnown() || objectRef.IsObjRefLite()) || ((objectRef.GetType() != orType) || (objectRef.ChannelInfo != null)))) && flag);
        }