コード例 #1
0
        internal T GetKeplerServiceReferenceX <T>() where T : IDisposable
        {
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
            string basicAuthHeader = GetAuthenticationHeader();
            var    sfs             = new KeplerServiceFactorySettings(new Uri(Config.RelativityRestUrl + "/API"), basicAuthHeader, WireProtocolVersion.V2);
            var    ksf             = new KeplerServiceFactory(sfs);

            return(ksf.GetClient <T>());
        }
コード例 #2
0
 public TestKeplerServicesManager(ServiceFactorySettings settings)
 {
     this.settings       = settings;
     this.keplerSettings = new KeplerServiceFactorySettings(new Uri(settings.RelativityRestUri, "/API"),
                                                            settings.Credentials.GetAuthenticationHeaderValue(), WireProtocolVersion.V2);
 }
コード例 #3
0
 public TestKeplerServicesManager(KeplerServiceFactorySettings keplerSettings)
 {
     this.keplerSettings = keplerSettings;
 }