Esempio n. 1
0
 public Any(object obj)
 {
     SetTypeCode(
         OrbServices.GetSingleton().create_tc_for(obj));
     // because serialization is done based on the typecode type, make sure
     // that the value is assignable to the typecode.
     // For cases, where the .NET type can't be mapped directly to idl (like SByte),
     // this would otherwise lead to problems in Serializer.
     m_value = m_typeCode.ConvertToAssignable(obj);
 }
 internal InterceptorManager(OrbServices orb) {
     m_interceptionRegistrationComplete = false;
     m_orb = orb;
 }
 internal ORBInitInfoImpl(OrbServices orb) {
     m_orb = orb;
     m_manager = orb.InterceptorManager;
     m_codecFactory = orb.CodecFactory;
 }
Esempio n. 4
0
 public ServerRequestInterceptor GetServerRequestInterceptor(OrbServices orb) {
     lock(this) {
         if (m_serverInterceptor == null) {
             m_serverInterceptor = new BiDirIiopServerInterceptor(orb);
         }
         return m_serverInterceptor;
     }            
 }
Esempio n. 5
0
 public ClientRequestInterceptor GetClientRequestInterceptor(OrbServices orb) {
     lock(this) {
         if (m_clientInterceptor == null) {
             m_clientInterceptor = new BiDirIiopClientInterceptor(orb);
         }
         return m_clientInterceptor;
     }            
 }
Esempio n. 6
0
 public BiDirIiopServerInterceptor(OrbServices orb) {
     m_codec = orb.CodecFactory.create_codec(
                   new Encoding(ENCODING_CDR_ENCAPS.ConstVal, 1, 2));
     m_svcContextTypeCode = orb.create_tc_for_type(typeof(BiDirIIOPServiceContext));
 }
Esempio n. 7
0
 public BiDirIiopClientInterceptor(OrbServices orb) {
     m_codec = orb.CodecFactory.create_codec(
                   new Encoding(ENCODING_CDR_ENCAPS.ConstVal, 1, 2));            
 }