示例#1
0
        /// <summary>
        /// Method is used to set the data connection from on-line cube.
        /// </summary>

        private void SetConnection()
        {
            BasicHttpBinding basicHttpBinding = new BasicHttpBinding();

            basicHttpBinding.MaxReceivedMessageSize = 2147483647;
            basicHttpBinding.MaxBufferSize          = 2147483647;
            EndpointAddress address = new EndpointAddress("http://bi.syncfusion.com/OlapUWPTestService/OlapManager.svc/");
            ChannelFactory <IOlapDataProvider> clientFactory = new ChannelFactory <IOlapDataProvider>(basicHttpBinding, address);

            this.clientChannel = clientFactory.CreateChannel();
        }
示例#2
0
 private void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         if (this.olapDataManager != null)
         {
             this.olapDataManager.OlapDataChanged       -= this.OlapDataManager_OlapDataChanged;
             this.olapDataManager.GetCubeSchema         -= this.OlapDataManager_GetCubeSchema;
             this.olapDataManager.GetCubeInfoCollection -= this.OlapDataManager_GetCubeInfoCollection;
             this.olapDataManager.Dispose();
         }
         this.olapDataManager = null;
         this.clientChannel   = null;
     }
 }