예제 #1
0
파일: VertexBase.cs 프로젝트: klawrawkz/CRA
        /// <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);
        }
예제 #2
0
파일: VertexBase.cs 프로젝트: nlebeck/CRA
        /// <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;
 }
예제 #4
0
 // 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();
 }
예제 #5
0
 public Library(string dllName, bool client)
 {
     Shared = new SharedLibrary(dllName);
     if (client)
     {
         Client = new ClientLibrary(dllName);
     }
     else
     {
         Server = new ServerLibrary(dllName);
     }
 }
예제 #6
0
        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()));
        }
예제 #7
0
 public void LoginUser()
 {
     ClientLibrary.authUser(userName.text, password.text);
 }
예제 #8
0
 public Create(ref ClientLibrary client_library, string[] words) : base(ref client_library)
 {
     this.words = words;
 }
예제 #9
0
 public Initialize(ref ClientLibrary client_library) : base(ref client_library)
 {
 }
예제 #10
0
 public ServerChange(ref ClientLibrary clientLibrary)
 {
     this.clientLibrary = clientLibrary;
 }
예제 #11
0
        public Command(ref ClientLibrary client_library)
        {
            this.client_library = client_library;

            Init();
        }
예제 #12
0
 public Ping(ref ClientLibrary client_library) : base(ref client_library)
 {
 }
예제 #13
0
 public Status(ref ClientLibrary client_library) : base(ref client_library)
 {
 }
예제 #14
0
 public List(ref ClientLibrary client_library) : base(ref client_library)
 {
 }