public sealed override void Dispose() { if (PivotClient1 != null) { PivotClient1.Loaded -= PivotClient1_Loaded; PivotClient1.Dispose(); } PivotClient1 = null; if (olapDataManager != null) { olapDataManager.OlapDataChanged -= OlapDataManager_OlapDataChanged; olapDataManager.GetCubeSchema -= OlapDataManager_GetCubeSchema; olapDataManager.GetCubeInfoCollection -= OlapDataManager_GetCubeInfoCollection; olapDataManager.GetChildMembers -= OlapDataManager_GetChildMembers; olapDataManager.GetChildrenByMDX -= OlapDataManager_GetChildrenByMDX; olapDataManager.GetOlapDataWithTotalCount -= OlapDataManager_GetOlapDataWithTotalCount; olapDataManager.GetLevelMembersUsingMdx -= OlapDataManager_GetLevelMembersUsingMdx; olapDataManager.Dispose(); } olapDataManager = null; clientChannel = null; base.Dispose(); }
private void SetConnection() { System.ServiceModel.BasicHttpBinding basicHttpBinding = new System.ServiceModel.BasicHttpBinding(); basicHttpBinding.MaxReceivedMessageSize = 2147483647; basicHttpBinding.MaxBufferSize = 2147483647; System.ServiceModel.EndpointAddress address = new System.ServiceModel.EndpointAddress("http://bi.syncfusion.com/OlapUWPTestService/OlapManager.svc/"); System.ServiceModel.ChannelFactory <Syncfusion.SampleBrowser.UWP.PivotClient.OlapManagerService.IOlapDataProvider> clientFactory = new System.ServiceModel.ChannelFactory <Syncfusion.SampleBrowser.UWP.PivotClient.OlapManagerService.IOlapDataProvider>(basicHttpBinding, address); clientChannel = clientFactory.CreateChannel(); }
public sealed override void Dispose() { if (pivotClient1 != null) { pivotClient1.Dispose(); } pivotClient1 = null; if (pivotClient != null) { pivotClient.Dispose(); } pivotClient = null; clientToolbarBinding = null; gridToolbarBinding = null; chartToolbarBinding = null; showTogglePivotButtonBinding = null; showMDXButtonBinding = null; showExpanderButtonBinding = null; showReportListBinding = null; showReportMenuBinding = null; showCubeDimensionBrowserBinding = null; showSearchBoxBinding = null; showSlicerAxisBinding = null; showColumnAxisBinding = null; showRowAxisBinding = null; showValueAxisBinding = null; displayModeBinding = null; if (rdBtn_Olap != null) { this.rdBtn_Olap.Click -= OlapDataSource_Click; } rdBtn_Olap = null; if (rdBtn_Relational != null) { this.rdBtn_Relational.Click -= RelationalDataSource_Click; } rdBtn_Relational = null; if (viewModel != null) { viewModel.Dispose(); } viewModel = null; if (olapDataManager != null) { olapDataManager.OlapDataChanged -= OlapDataManager_OlapDataChanged; olapDataManager.GetCubeSchema -= OlapDataManager_GetCubeSchema; olapDataManager.GetCubeInfoCollection -= OlapDataManager_GetCubeInfoCollection; olapDataManager.GetChildMembers -= OlapDataManager_GetChildMembers; olapDataManager.GetChildrenByMDX -= OlapDataManager_GetChildrenByMDX; olapDataManager.GetOlapDataWithTotalCount -= OlapDataManager_GetOlapDataWithTotalCount; olapDataManager.GetLevelMembersUsingMdx -= OlapDataManager_GetLevelMembersUsingMdx; olapDataManager.Dispose(); } olapDataManager = null; clientChannel = null; base.Dispose(); }