예제 #1
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);
        }
예제 #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();
 }