コード例 #1
0
ファイル: Bootstrapper.cs プロジェクト: njmube/public
        private static LicenseChecker GetRemoteChecker(LicenseOptions options, Sys sys)
        {
            var checkUrl = options.CheckUrl;
              if (String.IsNullOrWhiteSpace(checkUrl))
            return new NullRemoteChecker();

              var submitUrl = options.SubmitUrl.NullIfEmpty() ?? checkUrl;
              var remote = new WebRemote(submitUrl);
              var builder = new WebRequestBuilder(sys, checkUrl);
              var parser = new WebResponseParser();

              return new RemoteCheckerClient(remote, builder, parser);
        }
コード例 #2
0
        private static LicenseChecker GetRemoteChecker(LicenseOptions options, Sys sys)
        {
            var checkUrl = options.CheckUrl;

            if (String.IsNullOrWhiteSpace(checkUrl))
            {
                return(new NullRemoteChecker());
            }

            var submitUrl = options.SubmitUrl.NullIfEmpty() ?? checkUrl;
            var remote    = new WebRemote(submitUrl);
            var builder   = new WebRequestBuilder(sys, checkUrl);
            var parser    = new WebResponseParser();

            return(new RemoteCheckerClient(remote, builder, parser));
        }
コード例 #3
0
 public void SetUp()
 {
     sut = new WebResponseParser();
 }