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

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

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

            return(exists);
        }
예제 #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);
     }
 }
예제 #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);
        }
예제 #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());
예제 #6
0
 var(caller, logType, logCategory, callerTypeName, callerMemberName, value) = filter;
예제 #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;
        }
예제 #8
0
        bool checkCallExists(caller call)
        {
            bool exists = false;

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

            return exists;
        }