예제 #1
0
 public Ice.ObjectFactory findObjectFactory(string id)
 {
     lock (this)
     {
         Ice.ObjectFactory factory = null;
         _objectFactoryMap.TryGetValue(id, out factory);
         return(factory);
     }
 }
예제 #2
0
 public void add(Ice.ObjectFactory factory, string id)
 {
     lock (this)
     {
         if (_factoryMap.ContainsKey(id))
         {
             Ice.AlreadyRegisteredException ex = new Ice.AlreadyRegisteredException();
             ex.id           = id;
             ex.kindOfObject = "object factory";
             throw ex;
         }
         _factoryMap[id] = factory;
     }
 }
예제 #3
0
        public void add(Ice.ObjectFactory factory, string id)
        {
            lock (this)
            {
                if (_factoryMap.ContainsKey(id))
                {
                    Ice.AlreadyRegisteredException ex = new Ice.AlreadyRegisteredException();
                    ex.id           = id;
                    ex.kindOfObject = "value factory";
                    throw ex;
                }

                Ice.ValueFactory valueFactory = s => { return(factory.create(s)); };
                _factoryMap[id]       = valueFactory;
                _objectFactoryMap[id] = factory;
            }
        }
예제 #4
0
파일: Client.cs 프로젝트: bholl/zeroc-ice
 public void setFactory(Ice.ObjectFactory factory)
 {
     _factory = factory;
 }
예제 #5
0
파일: Client.cs 프로젝트: bholl/zeroc-ice
 public MyClassFactoryWrapper()
 {
     _factory = null;
 }