public void CallLongCompute(int x, int y, string clientID) { try { proxy = new PS.LongComputeClient(new System.ServiceModel.InstanceContext(this), "PSEP"); proxy.Compute(x, y, clientID); } catch (Exception ex) { throw ex; } }
public void CallLongCompute(int x, int y, string clientID) { try { proxy = new PS.LongComputeClient(new System.ServiceModel.InstanceContext(this), "PSEP"); // PSEP is the name of client endpoint // for calling ILongCompute interface in service proxy.Compute(x, y, clientID); } catch (Exception ex) { throw ex; } }