/// <summary>
        /// Determines if a service instance exists.
        /// </summary>
        /// <param name="svcMng">ServiceManagementServer object.</param>
        /// <param name="ServiceInstanceGuid">The service instance GUID.</param>
        /// <returns>true if the the service instance already exists; otherwise, false.</returns>
        public static bool DetermineIfServiceInstanceExists(ServiceManagementServer svcMng, Guid ServiceInstanceGuid)
        {
            bool result = false;

            // Check if this Service Instance is already registered
            try
            {
                string _svcInstanceName = svcMng.GetServiceInstance(ServiceInstanceGuid);
                result = true;
            }
            catch
            {
                result = false;
            }

            return(result);
        }
Beispiel #2
0
 internal virtual string GetServiceInstance(Guid ServiceInstanceGuid)
 {
     return(_serviceManagementServer.GetServiceInstance(ServiceInstanceGuid));
 }
        /// <summary>
        /// Determines if a service instance exists.
        /// </summary>
        /// <param name="svcMng">ServiceManagementServer object.</param>
        /// <param name="ServiceInstanceGuid">The service instance GUID.</param>
        /// <returns>true if the the service instance already exists; otherwise, false.</returns>
        public static bool DetermineIfServiceInstanceExists(ServiceManagementServer svcMng, Guid ServiceInstanceGuid)
        {
            bool result = false;

            // Check if this Service Instance is already registered
            try
            {
                string _svcInstanceName = svcMng.GetServiceInstance(ServiceInstanceGuid);
                result = true;
            }
            catch
            {
                result = false;
            }

            return result;
        }