public IUisClient GetUisClient(ICygNetModel cygNetMdoel)
        {
            var        domainSiteService = GetDomainSiteServiceFromCOMAPI(cygNetMdoel);
            IUisClient uisClient         = clientProxyManager.GetUisClient(domainSiteService);

            uisClient.Connect(domainSiteService);
            return(uisClient);
        }
Exemple #2
0
        public CygnetResponseModel GetCygNetConnectivity([FromBody] ICygNetModel cygNetModel)
        {
            CygnetResponseModel   cygnetResponseModel   = new CygnetResponseModel();
            CygNetBusinessManager cygNetBusinessManager = new CygNetBusinessManager();

            try
            {
                cygnetResponseModel.IsCygNetConnected = cygNetBusinessManager.GetUisClient(cygNetModel) == null ? true : false;
            }
            catch (Exception error)
            {
                cygnetResponseModel.Error = error.Message;
            }

            return(cygnetResponseModel);
        }
 public CygNet.Data.Core.DomainSiteService GetDomainSiteServiceFromCygNetCore(ICygNetModel cygNetModel)
 {
     return(new CygNet.Data.Core.DomainSiteService(cygNetModel.Domain, cygNetModel.Site, cygNetModel.Service));
 }
 public CygNet.COMAPI.Core.DomainSiteService GetDomainSiteServiceFromCOMAPI(ICygNetModel cygNetModel)
 {
     return(new CygNet.COMAPI.Core.DomainSiteService(cygNetModel.Domain, cygNetModel.Site, cygNetModel.Service));
 }
Exemple #5
0
 public IUisClient GetUisClient(ICygNetModel cygNetModel)
 {
     return(ExceptionHandling.ProcessReturn(() => cygNetDataAccessManager.GetUisClient(cygNetModel)));
 }