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); }
public HWireClient(String url, BWireFlags flags, int timeoutSeconds) : base(flags) { this.url = url; this.timeoutMillisClient = timeoutSeconds * 1000; this.testAdapterVal = new HTestAdapter(this); }
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; }
public BWire(BWireFlags flags) { internalInit(flags); }
protected void internalInit(BWireFlags flags) { rand = new BSecureRandom(); this.flagsVal = flags; }
public IXWireClient(String url, BWireFlags flags, int timeoutSeconds) : base(url, flags, timeoutSeconds) { }
public BWire(BWireFlags flags) { internalInit(flags); }
protected void internalInit(BWireFlags flags) { rand = new BSecureRandom(); this.flagsVal = flags; }