public UserManagementWrapper(string username, string password)
        {
            this.userManager = new UserManagementClient();
            CertificateValidation.EnsureCertificateValidation();

            this.authentication = new AuthenticationInfo()
            {
                UserKey  = username,
                Password = password
            };
        }
Beispiel #2
0
        public UsageManagementWrapper(string username, string password)
        {
            this.usageManager = new UsageReportingClient();

            // Ensure server certificate is validated
            CertificateValidation.EnsureCertificateValidation();

            this.authentication = new PanoptoScheduleUploader.Services.UsageManagement.AuthenticationInfo()
            {
                UserKey  = username,
                Password = password
            };
        }
        public SessionManagementWrapper(string username, string password)
        {
            this.sessionManager = new SessionManagementClient();

            // Ensure server certificate is validated
            CertificateValidation.EnsureCertificateValidation();

            this.authentication = new AuthenticationInfo()
            {
                UserKey  = username,
                Password = password
            };
        }
        // RemoteRecorderManagement.ListRecorders() (Gets the list of all recorders and allows filtering by recorder name.)
        // RemoteRecorderManagement.ScheduleRecording() (Creates a new recording on a particular remote recorder.)
        // RemoteRecorderManagement.UpdateRecordingTime() (Allows modification of a previously scheduled recording.)

        public RemoteRecorderManagementWrapper(string user, string password)
        {
            // Instantiate service clients
            this.remoteRecorderManager = new RemoteRecorderManagementClient();


            // Ensure server certificate is validated
            CertificateValidation.EnsureCertificateValidation();

            // Create auth info. For this sample, we will be passing auth info into all of the PublicAPI web service calls
            // instead of using IAuth.LogonWithPassword() (which is the alternative method).
            this.authenticationInfo = new AuthenticationInfo()
            {
                UserKey  = user,
                Password = password
            };

            // Set default DateTime format
            this.dateTimeFormat = ConfigurationManager.AppSettings["dateTimeFormat"] ?? "dd-MMM-yyyy hh:mm tt";
        }