Exemple #1
0
        private bool ApplicationExistsInNode(int applicationId, Node node)
        {
            NcApplicationExistsRequest request = new NcApplicationExistsRequest(Credentials);

            request.ApplicationId = applicationId;
            NcApplicationExistsResponse response = EndPoints.GetNcApplicationGridService(node).ApplicationExists(request);

            return(response.Exists);
        }
Exemple #2
0
        public NcApplicationExistsResponse ApplicationExists(NcApplicationExistsRequest request)
        {
            Log.Info(this, "ApplicationExists()");

            try
            {
                Authenticate(request);
                var handler = NodeCartridgeFactory.GetHandler(request.ApplicationType);
                return(handler.ApplicationExists(request));
            }
            catch (Exception e)
            {
                Log.Error(this, e);
                throw e;
            }
        }
Exemple #3
0
        public NcApplicationExistsResponse ApplicationExists(NcApplicationExistsRequest request)
        {
            Log.Info(this, "ApplicationExists()");

            try {
                NcApplicationExistsResponse response = new NcApplicationExistsResponse();
                if (Database.Applications != null)
                {
                    Application app = Database.Applications.Where(x => x.Id == request.ApplicationId).FirstOrDefault();
                    response.Exists = (app != null);
                }
                return(response);
            }
            catch (Exception e) {
                Log.Error(this, e);
                throw e;
            }
        }
Exemple #4
0
 public NcApplicationExistsResponse ApplicationExists(NcApplicationExistsRequest request)
 {
     throw new NotImplementedException();
 }