public static int DoSessionStart(string username, string serviceId, string privateKey, string apiURL)
        {
            var serviceClient = ClientFactories.MakeServiceClient(serviceId, privateKey, apiURL);

            return(SharedServiceHelpers.DoSessionStart(serviceClient, username));
        }
Esempio n. 2
0
        /// <summary>
        /// Start a session for a directory service and user
        /// </summary>
        public static int DoDirectoryServiceSessionStart(string directoryId, string privateKey, string serviceId, string userId, string apiURL)
        {
            var serviceClient = ClientFactories.MakeDirectoryServiceClient(directoryId, privateKey, serviceId, apiURL);

            return(SharedServiceHelpers.DoSessionStart(serviceClient, userId));
        }