コード例 #1
0
 /// <summary>
 /// This constructor creates the web service instance using the given URL:
 /// </summary>
 /// <param name="serviceURL">The service URL of the BIRST farm. </param>
 /// <remarks>Currently this is http://login.bws.birst.com/CommandWebService.asmx for the Infor Cloud.</remarks>
 public BirstService(string serviceURL)
 {
     ServiceURL                  = serviceURL;
     _webService                 = new CommandWebService();
     _webService.Url             = serviceURL;
     _webService.CookieContainer = new CookieContainer();
 }
コード例 #2
0
 private void CreateService(Uri uri)
 {
     _service = new CommandWebService
     {
         Url             = new Uri(uri, "CommandWebService.asmx").ToString(),
         CookieContainer = new CookieContainer()
     };
 }
コード例 #3
0
        /// <summary>
        /// Implementation of dispose.
        /// </summary>
        /// <param name="disposing">Whether managed or unmanaged resources are disposed.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    if (_webService != null)
                    {
                        Logout();
                        _webService.Dispose();
                        _webService = null;
                    }
                }

                disposedValue = true;
            }
        }