示例#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 HWireClient(String url, BWireFlags flags, int timeoutSeconds)
     : base(flags)
 {
     this.url = url;
     this.timeoutMillisClient = timeoutSeconds * 1000;
     this.testAdapterVal      = new HTestAdapter(this);
 }
示例#3
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;
	    }
示例#4
0
 public BWire(BWireFlags flags)
 {
     internalInit(flags);
 }
示例#5
0
 protected void internalInit(BWireFlags flags)
 {
     rand          = new BSecureRandom();
     this.flagsVal = flags;
 }
示例#6
0
 public IXWireClient(String url, BWireFlags flags, int timeoutSeconds)
     : base(url, flags, timeoutSeconds)
 {
 }
示例#7
0
文件: BWire.cs 项目: marcarvalho/byps
 public BWire(BWireFlags flags)
 {
     internalInit(flags);
 }
示例#8
0
文件: BWire.cs 项目: marcarvalho/byps
 protected void internalInit(BWireFlags  flags)
 {
     rand = new BSecureRandom();
     this.flagsVal = flags;
 }