Example #1
0
        static void Main(string[] args)
        {
            caller newClassCaller = new caller();

            newClassCaller.DisplayMethods();
            newClassCaller.DisplayMethods();
        }
Example #2
0
        bool checkCallExists(caller call)
        {
            bool exists = false;

            foreach (caller c in calls)
            {
                if (c.id == call.id)
                {
                    exists = true;
                }
            }

            return(exists);
        }
Example #3
0
 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);
     }
 }
Example #4
0
        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);
        }
Example #5
0
 ValueTask <OperationResult> IHandler.HandleAsync(object caller, object request, CancellationToken cancellation) => request is TRequest model?this.HandleAsync(caller, model, cancellation) : ValueTask.FromResult(OperationResult.Fail());
Example #6
0
 var(caller, logType, logCategory, callerTypeName, callerMemberName, value) = filter;
Example #7
0
        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;
        }
Example #8
0
        bool checkCallExists(caller call)
        {
            bool exists = false;

            foreach (caller c in calls)
            {
                if (c.id == call.id)
                    exists = true;
            }

            return exists;
        }