static void Main(string[] args) { caller newClassCaller = new caller(); newClassCaller.DisplayMethods(); newClassCaller.DisplayMethods(); }
bool checkCallExists(caller call) { bool exists = false; foreach (caller c in calls) { if (c.id == call.id) { exists = true; } } return(exists); }
public ServerConnectionTools(caller par_serverCB) { m_serverCB = par_serverCB; this.Scope = InitiateScope(); try { this.UpdateServicesList(); } catch (System.Runtime.InteropServices.COMException) { // Server is unavailable Console.WriteLine("Unable to reach server {0}", server.ServerName); } }
private caller createCaller(int id, TCallStatus status) { caller call = new caller(); call.id = id; call.status = status; Console.WriteLine("Creating caller: " + call); if (!checkCallExists(call)) { calls.Add(call); } else { ((caller)calls[findID(id)]).status = status; } return(call); }
ValueTask <OperationResult> IHandler.HandleAsync(object caller, object request, CancellationToken cancellation) => request is TRequest model?this.HandleAsync(caller, model, cancellation) : ValueTask.FromResult(OperationResult.Fail());
var(caller, logType, logCategory, callerTypeName, callerMemberName, value) = filter;
private caller createCaller(int id, TCallStatus status) { caller call = new caller(); call.id = id; call.status = status; Console.WriteLine("Creating caller: " + call); if (!checkCallExists(call)) { calls.Add(call); } else { ((caller)calls[findID(id)]).status = status; } return call; }
bool checkCallExists(caller call) { bool exists = false; foreach (caller c in calls) { if (c.id == call.id) exists = true; } return exists; }