Пример #1
0
        public static BClient_Testser createClient(BWireFlags flags) 
        {
            BClient_Testser client = null;
            try
            {
                ServicePointManager.DefaultConnectionLimit = 1000;


                BWire wire = new HWireClient(url, flags, 120);
                BTransportFactory transportFactory = new HTransportFactoryClient(BApiDescriptor_Testser.instance, wire, 1);

                client = BClient_Testser.createClient(transportFactory);

                BSyncResult<bool> syncResult = new BSyncResult<bool>();
                client.start(BAsyncResultHelper.ToDelegate(syncResult));

                syncResult.GetResult();
            }
            catch (Exception e)
            {
                Assert.Fail(e.ToString());
            }

		    return client;
	    }
Пример #2
0
 public BClient_BUtilityRequests getClientUtilityRequests()
 {
     if (clientUtilityRequests == null)
     {
         BApiDescriptor    apiDesc          = BApiDescriptor_BUtilityRequests.instance;
         BTransportFactory transportFactory = new HTransportFactoryClient(apiDesc, this, 0);
         clientUtilityRequests = BClient_BUtilityRequests.createClient(transportFactory);
     }
     return(clientUtilityRequests);
 }