/// <summary> /// Initialize vertex /// </summary> /// <param name="vertexParameter"></param> public override async Task InitializeAsync(object vertexParameter) { var par = (Tuple <int, object>)vertexParameter; var shardingInfo = await ClientLibrary.GetShardingInfoAsync(GetVertexName()); await InitializeAsync(par.Item1, shardingInfo, par.Item2); }
/// <summary> /// Initialize vertex /// </summary> /// <param name="vertexParameter"></param> public override void Initialize(object vertexParameter) { var par = (Tuple <int, object>)vertexParameter; var shardingInfo = ClientLibrary.GetShardingInfo(GetVertexName()); Initialize(par.Item1, shardingInfo, par.Item2); }
public ClientCommunication(ClientLibrary client_library) { this.client_library = client_library; this.client_identifier = client_library.ClientIdentifier; this.client_port = client_library.ClientPort; this.client_ip = client_library.ClientIP; this.client_remoting = client_library.ClientRemoting; }
// Start is called before the first frame update void Start() { Profile = ClientLibrary.getProfile(userInfo.userName);; name.text = Profile.Username; wins.text = "Wins: " + Profile.Wins.ToString(); loses.text = "Losses: " + Profile.Losses.ToString(); totalinteger = Profile.Wins + Profile.Losses; total.text = "Total: " + totalinteger.ToString(); }
public Library(string dllName, bool client) { Shared = new SharedLibrary(dllName); if (client) { Client = new ClientLibrary(dllName); } else { Server = new ServerLibrary(dllName); } }
public void TestSerialization() { ClientLibrary cl = new ClientLibrary(new List <Client>() { new Client(new Dictionary <String, String>() { { "testKey", "testValue" }, { "Default", "demo" }, }), new Client(new Dictionary <String, String>() { { "testKeyClient2", "testValue" }, { "DefaultClient2", "demo" }, }) }); string serializedJson = JsonConvert.SerializeObject(cl); ClientJsonParser jsonParser = new ClientJsonParser(serializedJson); Assert.IsTrue(serializedJson.Equals(jsonParser.serializeClients())); }
public void LoginUser() { ClientLibrary.authUser(userName.text, password.text); }
public Create(ref ClientLibrary client_library, string[] words) : base(ref client_library) { this.words = words; }
public Initialize(ref ClientLibrary client_library) : base(ref client_library) { }
public ServerChange(ref ClientLibrary clientLibrary) { this.clientLibrary = clientLibrary; }
public Command(ref ClientLibrary client_library) { this.client_library = client_library; Init(); }
public Ping(ref ClientLibrary client_library) : base(ref client_library) { }
public Status(ref ClientLibrary client_library) : base(ref client_library) { }
public List(ref ClientLibrary client_library) : base(ref client_library) { }