Beispiel #1
0
 private void onResultReturned(ClientVector result)
 {
     Console.WriteLine("Received some Result: ["
         + result.x + ","
         + result.y + ","
         + result.z + "]");
 }
Beispiel #2
0
 private void onResultReturned(ClientVector result)
 {
     Console.WriteLine("Received some Result: ["
                       + result.x + ","
                       + result.y + ","
                       + result.z + "]");
 }
Beispiel #3
0
 private void callAddVectors()
 {
     ClientVector a = new ClientVector { x = 1, y = 2, z = 3 };
     ClientVector b = new ClientVector { x = 10, y = 20, z = 30 };
     IClientFunctionCall addCall = AddVectors(a, b);
     addCall.OnSuccess<ClientVector>((Action<ClientVector>)onResultReturned);
     addCall.OnFailure((Action)onFailureReturned);
 }
Beispiel #4
0
        private void callAddVectors()
        {
            ClientVector a = new ClientVector {
                x = 1, y = 2, z = 3
            };
            ClientVector b = new ClientVector {
                x = 10, y = 20, z = 30
            };
            IClientFunctionCall addCall = AddVectors(a, b);

            addCall.OnSuccess <ClientVector>((Action <ClientVector>)onResultReturned);
            addCall.OnFailure((Action)onFailureReturned);
        }