DoNotProcess & Lower/Upper Boundary

This commit is contained in:
christianwade 2016-12-03 17:06:28 -08:00
parent f5493e9a17
commit 41face83fe
27 changed files with 4506 additions and 4469 deletions

View File

@ -7,7 +7,7 @@ namespace AsPartitionProcessing.SampleClient
{ {
class Program class Program
{ {
const bool UseDatabase = true; const bool UseDatabase = false;
static void Main(string[] args) static void Main(string[] args)
{ {

View File

@ -43,6 +43,7 @@ namespace AsPartitionProcessing
,[SourceTableName] ,[SourceTableName]
,[SourcePartitionColumn] ,[SourcePartitionColumn]
FROM [dbo].[vPartitioningConfiguration] FROM [dbo].[vPartitioningConfiguration]
WHERE [DoNotProcess] = 0
ORDER BY ORDER BY
[ModelConfigurationID], [ModelConfigurationID],
[TableConfigurationID], [TableConfigurationID],

View File

@ -28,10 +28,20 @@ namespace AsPartitionProcessing
public int NumberOfPartitionsForIncrementalProcess { get; set; } public int NumberOfPartitionsForIncrementalProcess { get; set; }
/// <summary> /// <summary>
/// The maximum date that needs to be accounted for in the partitioned table. Represents the upper boundary of the rolling window. /// The maximum date that needs to be accounted for in the partitioned table.
/// </summary> /// </summary>
public DateTime MaxDate { get; set; } public DateTime MaxDate { get; set; }
/// <summary>
/// Lower boundary for date range covered by partitioning configuration.
/// </summary>
public DateTime LowerBoundary { get; }
/// <summary>
/// Upper boundary for date range covered by partitioning configuration.
/// </summary>
public DateTime UpperBoundary { get; }
/// <summary> /// <summary>
/// Name of the source table in the relational database. /// Name of the source table in the relational database.
/// </summary> /// </summary>
@ -70,6 +80,28 @@ namespace AsPartitionProcessing
MaxDate = maxDate; MaxDate = maxDate;
SourceTableName = sourceTableName; SourceTableName = sourceTableName;
SourcePartitionColumn = sourcePartitionColumn; SourcePartitionColumn = sourcePartitionColumn;
switch (granularity)
{
case Granularity.Daily:
LowerBoundary = maxDate.AddDays(-numberOfPartitionsFull + 1);
UpperBoundary = maxDate;
break;
case Granularity.Monthly:
LowerBoundary = Convert.ToDateTime(maxDate.AddMonths(-numberOfPartitionsFull + 1).ToString("yyyy-MMM-01"));
UpperBoundary = Convert.ToDateTime(maxDate.AddMonths(1).ToString("yyyy-MMM-01")).AddDays(-1);
break;
case Granularity.Yearly:
LowerBoundary = Convert.ToDateTime(maxDate.AddYears(-numberOfPartitionsFull + 1).ToString("yyyy-01-01"));
UpperBoundary = Convert.ToDateTime(maxDate.AddYears(1).ToString("yyyy-01-01")).AddDays(-1);
break;
default:
break;
}
} }
} }

View File

@ -25,7 +25,6 @@ CREATE TABLE [dbo].[PartitioningConfiguration](
[NumberOfPartitionsFull] [int] NOT NULL, [NumberOfPartitionsFull] [int] NOT NULL,
[NumberOfPartitionsForIncrementalProcess] [int] NOT NULL, [NumberOfPartitionsForIncrementalProcess] [int] NOT NULL,
[MaxDate] [date] NOT NULL, [MaxDate] [date] NOT NULL,
[MinDate] AS (case when [Granularity]=(0) then dateadd(day,( -[NumberOfPartitionsFull])+(1),[MaxDate]) when [Granularity]=(1) then CONVERT([date],format(dateadd(month,( -[NumberOfPartitionsFull])+(1),[MaxDate]),'yyyy-MMM-01')) when [Granularity]=(2) then CONVERT([date],format(dateadd(year,( -[NumberOfPartitionsFull])+(1),[MaxDate]),'yyyy-01-01')) else [MaxDate] end),
[SourceTableName] [varchar](255) NOT NULL, [SourceTableName] [varchar](255) NOT NULL,
[SourcePartitionColumn] [varchar](255) NOT NULL, [SourcePartitionColumn] [varchar](255) NOT NULL,
CONSTRAINT [PK_PartitioningConfiguration] PRIMARY KEY CLUSTERED CONSTRAINT [PK_PartitioningConfiguration] PRIMARY KEY CLUSTERED
@ -52,6 +51,7 @@ CREATE TABLE [dbo].[TableConfiguration](
[TableConfigurationID] [int] NOT NULL, [TableConfigurationID] [int] NOT NULL,
[ModelConfigurationID] [int] NOT NULL, [ModelConfigurationID] [int] NOT NULL,
[AnalysisServicesTable] [varchar](255) NOT NULL, [AnalysisServicesTable] [varchar](255) NOT NULL,
[DoNotProcess] [bit] NOT NULL,
CONSTRAINT [PK_TableConfiguration] PRIMARY KEY CLUSTERED CONSTRAINT [PK_TableConfiguration] PRIMARY KEY CLUSTERED
( (
[TableConfigurationID] ASC [TableConfigurationID] ASC
@ -73,6 +73,9 @@ GO
ALTER TABLE [dbo].[ProcessingLog] CHECK CONSTRAINT [FK_ProcessingLog_ModelConfiguration] ALTER TABLE [dbo].[ProcessingLog] CHECK CONSTRAINT [FK_ProcessingLog_ModelConfiguration]
GO GO
ALTER TABLE [dbo].[TableConfiguration] ADD CONSTRAINT [DF_TableConfiguration_DoNotProcess] DEFAULT ((0)) FOR [DoNotProcess]
GO
ALTER TABLE [dbo].[TableConfiguration] WITH CHECK ADD CONSTRAINT [FK_TableConfiguration_ModelConfiguration] FOREIGN KEY([ModelConfigurationID]) ALTER TABLE [dbo].[TableConfiguration] WITH CHECK ADD CONSTRAINT [FK_TableConfiguration_ModelConfiguration] FOREIGN KEY([ModelConfigurationID])
REFERENCES [dbo].[ModelConfiguration] ([ModelConfigurationID]) REFERENCES [dbo].[ModelConfiguration] ([ModelConfigurationID])
GO GO
@ -94,7 +97,6 @@ GO
CREATE VIEW [dbo].[vPartitioningConfiguration] CREATE VIEW [dbo].[vPartitioningConfiguration]
AS AS
SELECT m.[ModelConfigurationID] SELECT m.[ModelConfigurationID]
@ -106,6 +108,7 @@ SELECT m.[ModelConfigurationID]
,m.[IntegratedAuth] ,m.[IntegratedAuth]
,t.[TableConfigurationID] ,t.[TableConfigurationID]
,t.[AnalysisServicesTable] ,t.[AnalysisServicesTable]
,t.[DoNotProcess]
,CASE ,CASE
WHEN p.[TableConfigurationID] IS NULL THEN 0 WHEN p.[TableConfigurationID] IS NULL THEN 0
ELSE 1 ELSE 1
@ -115,7 +118,6 @@ SELECT m.[ModelConfigurationID]
,p.[NumberOfPartitionsFull] ,p.[NumberOfPartitionsFull]
,p.[NumberOfPartitionsForIncrementalProcess] ,p.[NumberOfPartitionsForIncrementalProcess]
,p.[MaxDate] ,p.[MaxDate]
,p.[MinDate]
,p.[SourceTableName] ,p.[SourceTableName]
,p.[SourcePartitionColumn] ,p.[SourcePartitionColumn]
FROM [dbo].[ModelConfiguration] m FROM [dbo].[ModelConfiguration] m

View File

@ -14,11 +14,13 @@ VALUES(
1 --[TableConfigurationID] 1 --[TableConfigurationID]
,1 --[ModelConfigurationID] ,1 --[ModelConfigurationID]
,'Internet Sales' --[AnalysisServicesTable] ,'Internet Sales' --[AnalysisServicesTable]
,0 --[DoNotProcess]
), ),
( (
2 --[TableConfigurationID] 2 --[TableConfigurationID]
,1 --[ModelConfigurationID] ,1 --[ModelConfigurationID]
,'Reseller Sales' --[AnalysisServicesTable] ,'Reseller Sales' --[AnalysisServicesTable]
,0 --[DoNotProcess]
); );
INSERT INTO [dbo].[PartitioningConfiguration] INSERT INTO [dbo].[PartitioningConfiguration]

View File

@ -1,22 +1,22 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 14
VisualStudioVersion = 14.0.25420.1 VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ASPerfMon", "ASPerfMon\ASPerfMon.csproj", "{B2442578-2C46-47D2-B5FB-57096C234552}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ASPerfMon", "ASPerfMon\ASPerfMon.csproj", "{B2442578-2C46-47D2-B5FB-57096C234552}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B2442578-2C46-47D2-B5FB-57096C234552}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B2442578-2C46-47D2-B5FB-57096C234552}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B2442578-2C46-47D2-B5FB-57096C234552}.Debug|Any CPU.Build.0 = Debug|Any CPU {B2442578-2C46-47D2-B5FB-57096C234552}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B2442578-2C46-47D2-B5FB-57096C234552}.Release|Any CPU.ActiveCfg = Release|Any CPU {B2442578-2C46-47D2-B5FB-57096C234552}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B2442578-2C46-47D2-B5FB-57096C234552}.Release|Any CPU.Build.0 = Release|Any CPU {B2442578-2C46-47D2-B5FB-57096C234552}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal

View File

@ -1,94 +1,94 @@
namespace ASPerfMon namespace ASPerfMon
{ {
partial class ASPerfMon partial class ASPerfMon
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
/// </summary> /// </summary>
private System.ComponentModel.IContainer components = null; private System.ComponentModel.IContainer components = null;
/// <summary> /// <summary>
/// Clean up any resources being used. /// Clean up any resources being used.
/// </summary> /// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) protected override void Dispose(bool disposing)
{ {
if (disposing && (components != null)) if (disposing && (components != null))
{ {
components.Dispose(); components.Dispose();
} }
base.Dispose(disposing); base.Dispose(disposing);
} }
#region Windows Form Designer generated code #region Windows Form Designer generated code
/// <summary> /// <summary>
/// Required method for Designer support - do not modify /// Required method for Designer support - do not modify
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ASPerfMon)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ASPerfMon));
this.chartControl = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.chartControl = new System.Windows.Forms.DataVisualization.Charting.Chart();
this.btnConnect = new System.Windows.Forms.Button(); this.btnConnect = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.chartControl)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chartControl)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// chartControl // chartControl
// //
chartArea1.Name = "ChartArea1"; chartArea1.Name = "ChartArea1";
this.chartControl.ChartAreas.Add(chartArea1); this.chartControl.ChartAreas.Add(chartArea1);
this.chartControl.Dock = System.Windows.Forms.DockStyle.Fill; this.chartControl.Dock = System.Windows.Forms.DockStyle.Fill;
legend1.Name = "Legend1"; legend1.Name = "Legend1";
this.chartControl.Legends.Add(legend1); this.chartControl.Legends.Add(legend1);
this.chartControl.Location = new System.Drawing.Point(0, 0); this.chartControl.Location = new System.Drawing.Point(0, 0);
this.chartControl.Name = "chartControl"; this.chartControl.Name = "chartControl";
series1.ChartArea = "ChartArea1"; series1.ChartArea = "ChartArea1";
series1.Legend = "Legend1"; series1.Legend = "Legend1";
series1.Name = "Series1"; series1.Name = "Series1";
this.chartControl.Series.Add(series1); this.chartControl.Series.Add(series1);
this.chartControl.Size = new System.Drawing.Size(948, 645); this.chartControl.Size = new System.Drawing.Size(948, 645);
this.chartControl.TabIndex = 0; this.chartControl.TabIndex = 0;
this.chartControl.Text = "chart1"; this.chartControl.Text = "chart1";
this.chartControl.GetToolTipText += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.ToolTipEventArgs>(this.chartControl_GetToolTipText); this.chartControl.GetToolTipText += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.ToolTipEventArgs>(this.chartControl_GetToolTipText);
// //
// btnConnect // btnConnect
// //
this.btnConnect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnConnect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnConnect.Location = new System.Drawing.Point(788, 567); this.btnConnect.Location = new System.Drawing.Point(788, 567);
this.btnConnect.Name = "btnConnect"; this.btnConnect.Name = "btnConnect";
this.btnConnect.Size = new System.Drawing.Size(127, 44); this.btnConnect.Size = new System.Drawing.Size(127, 44);
this.btnConnect.TabIndex = 6; this.btnConnect.TabIndex = 6;
this.btnConnect.Text = "Connect"; this.btnConnect.Text = "Connect";
this.btnConnect.UseVisualStyleBackColor = true; this.btnConnect.UseVisualStyleBackColor = true;
this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click); this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
// //
// ASPerfMon // ASPerfMon
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White; this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(948, 645); this.ClientSize = new System.Drawing.Size(948, 645);
this.Controls.Add(this.btnConnect); this.Controls.Add(this.btnConnect);
this.Controls.Add(this.chartControl); this.Controls.Add(this.chartControl);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "ASPerfMon"; this.Name = "ASPerfMon";
this.Text = "AS PerfMon"; this.Text = "AS PerfMon";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ASPerfMon_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ASPerfMon_FormClosing);
this.Load += new System.EventHandler(this.ASPerfMon_Load); this.Load += new System.EventHandler(this.ASPerfMon_Load);
this.Shown += new System.EventHandler(this.ASPerfMon_Shown); this.Shown += new System.EventHandler(this.ASPerfMon_Shown);
((System.ComponentModel.ISupportInitialize)(this.chartControl)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chartControl)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
#endregion #endregion
private System.Windows.Forms.DataVisualization.Charting.Chart chartControl; private System.Windows.Forms.DataVisualization.Charting.Chart chartControl;
private System.Windows.Forms.Button btnConnect; private System.Windows.Forms.Button btnConnect;
} }
} }

View File

@ -1,394 +1,394 @@
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Windows.Forms; using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting; using System.Windows.Forms.DataVisualization.Charting;
using System.Timers; using System.Timers;
using Microsoft.AnalysisServices; using Microsoft.AnalysisServices;
using Tom = Microsoft.AnalysisServices.Tabular; using Tom = Microsoft.AnalysisServices.Tabular;
using System.Xml; using System.Xml;
using System.Drawing; using System.Drawing;
namespace ASPerfMon namespace ASPerfMon
{ {
public partial class ASPerfMon : Form public partial class ASPerfMon : Form
{ {
public ASPerfMon() public ASPerfMon()
{ {
InitializeComponent(); InitializeComponent();
} }
private Tom.Server _server = new Tom.Server(); private Tom.Server _server = new Tom.Server();
private System.Timers.Timer _timer; private System.Timers.Timer _timer;
private const int _smallestFont = 12; private const int _smallestFont = 12;
private string _serverConnectionString; private string _serverConnectionString;
private DateTime _connectionTime; private DateTime _connectionTime;
//-------------------------------------------------- //--------------------------------------------------
//120 X axis markers, one for each array item. //120 X axis markers, one for each array item.
//Each item holds a dictionary with lookup key of series name (e.g. database name), which returns a SeriesPoint object. //Each item holds a dictionary with lookup key of series name (e.g. database name), which returns a SeriesPoint object.
Dictionary<string, SeriesPoint>[] _seriesData = new Dictionary<string, SeriesPoint>[120]; Dictionary<string, SeriesPoint>[] _seriesData = new Dictionary<string, SeriesPoint>[120];
class SeriesPoint class SeriesPoint
{ {
public string XAxisLabel; public string XAxisLabel;
public long MemoryUsedBytes; public long MemoryUsedBytes;
public long MemoryUsedMegabytes public long MemoryUsedMegabytes
{ {
get get
{ {
return MemoryUsedBytes / 1024 / 1024; return MemoryUsedBytes / 1024 / 1024;
} }
} }
public SeriesPoint(string xAxisCategoryName) public SeriesPoint(string xAxisCategoryName)
{ {
this.XAxisLabel = xAxisCategoryName; this.XAxisLabel = xAxisCategoryName;
this.MemoryUsedBytes = 0; this.MemoryUsedBytes = 0;
} }
} }
private void ASPerfMon_Load(object sender, EventArgs e) private void ASPerfMon_Load(object sender, EventArgs e)
{ {
InitializeChart(false); InitializeChart(false);
} }
private void InitializeChart(bool withSampleSeries) private void InitializeChart(bool withSampleSeries)
{ {
chartControl.ChartAreas[0].AxisX.MajorGrid.Enabled = false; chartControl.ChartAreas[0].AxisX.MajorGrid.Enabled = false;
chartControl.ChartAreas[0].AxisX.Interval = 5; chartControl.ChartAreas[0].AxisX.Interval = 5;
chartControl.ChartAreas[0].AxisY.IsMarksNextToAxis = true; chartControl.ChartAreas[0].AxisY.IsMarksNextToAxis = true;
chartControl.ChartAreas[0].AxisY.LabelStyle.Format = "{0:n0}"; chartControl.ChartAreas[0].AxisY.LabelStyle.Format = "{0:n0}";
chartControl.ChartAreas[0].AxisY.Title = "Memory Usage MB"; chartControl.ChartAreas[0].AxisY.Title = "Memory Usage MB";
chartControl.Palette = ChartColorPalette.Pastel; chartControl.Palette = ChartColorPalette.Pastel;
chartControl.ChartAreas[0].AxisY.TitleFont = new Font(Font.FontFamily, _smallestFont + 2); chartControl.ChartAreas[0].AxisY.TitleFont = new Font(Font.FontFamily, _smallestFont + 2);
chartControl.Legends[0].Font = new Font(Font.FontFamily, _smallestFont); chartControl.Legends[0].Font = new Font(Font.FontFamily, _smallestFont);
chartControl.Legends[0].LegendItemOrder = LegendItemOrder.ReversedSeriesOrder; chartControl.Legends[0].LegendItemOrder = LegendItemOrder.ReversedSeriesOrder;
//initialize the chart with blanks //initialize the chart with blanks
Dictionary<string, SeriesPoint> pointsSample; Dictionary<string, SeriesPoint> pointsSample;
if (withSampleSeries) if (withSampleSeries)
pointsSample = GetNewXAxisMarkerPointsFromAs(); pointsSample = GetNewXAxisMarkerPointsFromAs();
else else
{ {
pointsSample = new Dictionary<string, SeriesPoint>(); pointsSample = new Dictionary<string, SeriesPoint>();
} }
chartControl.Series.Clear(); chartControl.Series.Clear();
if (withSampleSeries) if (withSampleSeries)
{ {
for (int i = _seriesData.Length - 1; i >= 0; i--) for (int i = _seriesData.Length - 1; i >= 0; i--)
{ {
foreach (KeyValuePair<string, SeriesPoint> entry in pointsSample)//to get series foreach (KeyValuePair<string, SeriesPoint> entry in pointsSample)//to get series
{ {
entry.Value.XAxisLabel = " "; entry.Value.XAxisLabel = " ";
entry.Value.MemoryUsedBytes = 0; entry.Value.MemoryUsedBytes = 0;
//add the series if not there yet //add the series if not there yet
if (chartControl.Series.FindByName(entry.Key) == null) if (chartControl.Series.FindByName(entry.Key) == null)
{ {
Series series = new Series(entry.Key); Series series = new Series(entry.Key);
chartControl.Series.Add(series); chartControl.Series.Add(series);
} }
chartControl.Series[entry.Key].Points.AddXY(" ", 0); chartControl.Series[entry.Key].Points.AddXY(" ", 0);
} }
_seriesData[i] = pointsSample; _seriesData[i] = pointsSample;
} }
PaintChart(); PaintChart();
} }
else else
{ {
chartControl.Series.Add(""); chartControl.Series.Add("");
for (int i = 0; i < _seriesData.Length; i++) for (int i = 0; i < _seriesData.Length; i++)
{ {
chartControl.Series[0].Points.AddXY(" ", 0); chartControl.Series[0].Points.AddXY(" ", 0);
} }
chartControl.Invalidate(); chartControl.Invalidate();
} }
_timer = new System.Timers.Timer(Settings.Default.SampleInterval); _timer = new System.Timers.Timer(Settings.Default.SampleInterval);
_timer.Elapsed += OnTimedEvent; _timer.Elapsed += OnTimedEvent;
_timer.AutoReset = true; _timer.AutoReset = true;
} }
private void PaintChart() private void PaintChart()
{ {
//set dynamic scale //set dynamic scale
long maxValue = 0; long maxValue = 0;
for (int i = _seriesData.Length - 1; i >= 0; i--) for (int i = _seriesData.Length - 1; i >= 0; i--)
{ {
long pointsStack = 0; long pointsStack = 0;
foreach (SeriesPoint point in _seriesData[i].Values) foreach (SeriesPoint point in _seriesData[i].Values)
{ {
pointsStack += Math.Abs(point.MemoryUsedMegabytes); pointsStack += Math.Abs(point.MemoryUsedMegabytes);
} }
if (pointsStack > maxValue) if (pointsStack > maxValue)
maxValue = pointsStack; maxValue = pointsStack;
} }
chartControl.ChartAreas[0].AxisY.IsStartedFromZero = true; chartControl.ChartAreas[0].AxisY.IsStartedFromZero = true;
chartControl.ChartAreas[0].AxisY.Minimum = double.NaN; chartControl.ChartAreas[0].AxisY.Minimum = double.NaN;
chartControl.ChartAreas[0].AxisY.Maximum = double.NaN; chartControl.ChartAreas[0].AxisY.Maximum = double.NaN;
chartControl.ChartAreas[0].RecalculateAxesScale(); chartControl.ChartAreas[0].RecalculateAxesScale();
chartControl.Invalidate(); chartControl.Invalidate();
} }
delegate void SetTimerCallback(Object source, ElapsedEventArgs e); delegate void SetTimerCallback(Object source, ElapsedEventArgs e);
private void OnTimedEvent(Object source, ElapsedEventArgs e) private void OnTimedEvent(Object source, ElapsedEventArgs e)
{ {
try try
{ {
if (chartControl.InvokeRequired) if (chartControl.InvokeRequired)
{ {
SetTimerCallback callback = new SetTimerCallback(OnTimedEvent); SetTimerCallback callback = new SetTimerCallback(OnTimedEvent);
//todo safer invoke look up bism //todo safer invoke look up bism
try try
{ {
Invoke(callback, new object[] { source, e }); Invoke(callback, new object[] { source, e });
} }
catch { } catch { }
} }
else else
{ {
//Todo delete this once http stability fix is done //Todo delete this once http stability fix is done
if ((DateTime.Now - _connectionTime).TotalMinutes > 8) if ((DateTime.Now - _connectionTime).TotalMinutes > 8)
{ {
_server.Disconnect(); _server.Disconnect();
_server.Connect(_serverConnectionString); _server.Connect(_serverConnectionString);
_connectionTime = DateTime.Now; _connectionTime = DateTime.Now;
} }
_seriesData[0] = GetNewXAxisMarkerPointsFromAs(); _seriesData[0] = GetNewXAxisMarkerPointsFromAs();
//rebind //rebind
chartControl.Series.Clear(); chartControl.Series.Clear();
//for each X axis marker //for each X axis marker
for (int i = _seriesData.Length - 1; i > 0; i--) for (int i = _seriesData.Length - 1; i > 0; i--)
{ {
//push back one category //push back one category
_seriesData[i] = _seriesData[i - 1]; _seriesData[i] = _seriesData[i - 1];
//foreach series for the X axis marker we are populating: ... //foreach series for the X axis marker we are populating: ...
foreach (KeyValuePair<string, SeriesPoint> entry in _seriesData[i]) foreach (KeyValuePair<string, SeriesPoint> entry in _seriesData[i])
{ {
//add the series if not there yet //add the series if not there yet
if (chartControl.Series.FindByName(entry.Key) == null) if (chartControl.Series.FindByName(entry.Key) == null)
{ {
Series series = new Series(entry.Key); Series series = new Series(entry.Key);
series.ChartType = SeriesChartType.StackedColumn; series.ChartType = SeriesChartType.StackedColumn;
chartControl.Series.Add(series); chartControl.Series.Add(series);
} }
//add the data point for the series //add the data point for the series
DataPoint point = new DataPoint(); DataPoint point = new DataPoint();
point.SetValueXY(entry.Value.XAxisLabel, entry.Value.MemoryUsedMegabytes); point.SetValueXY(entry.Value.XAxisLabel, entry.Value.MemoryUsedMegabytes);
point.ToolTip = string.Format($"{entry.Value.XAxisLabel} - {entry.Key}: {string.Format("{0:#,###0}", entry.Value.MemoryUsedMegabytes)} MB"); point.ToolTip = string.Format($"{entry.Value.XAxisLabel} - {entry.Key}: {string.Format("{0:#,###0}", entry.Value.MemoryUsedMegabytes)} MB");
chartControl.Series[entry.Key].Points.Add(point); chartControl.Series[entry.Key].Points.Add(point);
} }
} }
PaintChart(); PaintChart();
} }
} }
catch (Exception exc) catch (Exception exc)
{ {
//Workaround for timeout over HTTP. Try to reconnect - todo delete //Workaround for timeout over HTTP. Try to reconnect - todo delete
try try
{ {
System.Diagnostics.Debug.WriteLine($"Exception occurred at {DateTime.Now}: {exc.Message}"); System.Diagnostics.Debug.WriteLine($"Exception occurred at {DateTime.Now}: {exc.Message}");
_server.Disconnect(); _server.Disconnect();
_server.Connect(_serverConnectionString); _server.Connect(_serverConnectionString);
_connectionTime = DateTime.Now; _connectionTime = DateTime.Now;
} }
catch catch
{ {
_timer.Enabled = false; _timer.Enabled = false;
MessageBox.Show($"Error: {exc.Message}", "AS PerfMon", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show($"Error: {exc.Message}", "AS PerfMon", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
} }
private Dictionary<string, SeriesPoint> GetNewXAxisMarkerPointsFromAs() private Dictionary<string, SeriesPoint> GetNewXAxisMarkerPointsFromAs()
{ {
Dictionary<string, SeriesPoint> points = new Dictionary<string, SeriesPoint>(); Dictionary<string, SeriesPoint> points = new Dictionary<string, SeriesPoint>();
string xAxisLabel = DateTime.Now.ToString("hh:mm:ss tt"); string xAxisLabel = DateTime.Now.ToString("hh:mm:ss tt");
string commandStatement = String.Format("SELECT [OBJECT_PARENT_PATH], [OBJECT_MEMORY_NONSHRINKABLE] FROM $SYSTEM.DISCOVER_OBJECT_MEMORY_USAGE"); string commandStatement = String.Format("SELECT [OBJECT_PARENT_PATH], [OBJECT_MEMORY_NONSHRINKABLE] FROM $SYSTEM.DISCOVER_OBJECT_MEMORY_USAGE");
XmlNodeList rows = ExecuteXmlaCommand(_server, commandStatement); XmlNodeList rows = ExecuteXmlaCommand(_server, commandStatement);
foreach (XmlNode row in rows) foreach (XmlNode row in rows)
{ {
long result, label; long result, label;
if (long.TryParse(row.LastChild.InnerText, out result) && result > 0) if (long.TryParse(row.LastChild.InnerText, out result) && result > 0)
{ {
string objectName = ""; string objectName = "";
string[] pathMembers = row.ChildNodes[0].InnerText.Split('.'); string[] pathMembers = row.ChildNodes[0].InnerText.Split('.');
if (pathMembers.Length > 2 && _server.Databases.ContainsName(pathMembers[2])) if (pathMembers.Length > 2 && _server.Databases.ContainsName(pathMembers[2]))
{ {
//Database name identified //Database name identified
objectName = pathMembers[2]; objectName = pathMembers[2];
} }
else else
{ {
string firstMember = row.ChildNodes[0].InnerText; string firstMember = row.ChildNodes[0].InnerText;
//Ignore if number or blank. Assuming this is a double counted, shared allocation. //Ignore if number or blank. Assuming this is a double counted, shared allocation.
if (!long.TryParse(firstMember, out label) && firstMember != "") if (!long.TryParse(firstMember, out label) && firstMember != "")
{ {
objectName = firstMember; objectName = firstMember;
} }
} }
if (objectName != "" && objectName != "Global") //todo: delete global condition if (objectName != "" && objectName != "Global") //todo: delete global condition
{ {
if (!points.ContainsKey(objectName)) if (!points.ContainsKey(objectName))
points.Add(objectName, new SeriesPoint(xAxisLabel)); points.Add(objectName, new SeriesPoint(xAxisLabel));
points[objectName].MemoryUsedBytes += Math.Abs(result); points[objectName].MemoryUsedBytes += Math.Abs(result);
} }
} }
else if (result > 0) else if (result > 0)
{ {
System.Diagnostics.Debug.WriteLine("We have a problem parsing"); System.Diagnostics.Debug.WriteLine("We have a problem parsing");
} }
} }
return points; return points;
} }
public static XmlNodeList ExecuteXmlaCommand(Microsoft.AnalysisServices.Core.Server amoServer, string commandStatement) public static XmlNodeList ExecuteXmlaCommand(Microsoft.AnalysisServices.Core.Server amoServer, string commandStatement)
{ {
XmlWriter xmlWriter = amoServer.StartXmlaRequest(XmlaRequestType.Undefined); XmlWriter xmlWriter = amoServer.StartXmlaRequest(XmlaRequestType.Undefined);
WriteSoapEnvelopeWithCommandStatement(xmlWriter, amoServer.SessionID, commandStatement); WriteSoapEnvelopeWithCommandStatement(xmlWriter, amoServer.SessionID, commandStatement);
System.Xml.XmlReader xmlReader = amoServer.EndXmlaRequest(); System.Xml.XmlReader xmlReader = amoServer.EndXmlaRequest();
xmlReader.MoveToContent(); xmlReader.MoveToContent();
string fullEnvelopeResponseFromServer = xmlReader.ReadOuterXml(); string fullEnvelopeResponseFromServer = xmlReader.ReadOuterXml();
xmlReader.Close(); xmlReader.Close();
XmlDocument documentResponse = new XmlDocument(); XmlDocument documentResponse = new XmlDocument();
documentResponse.LoadXml(fullEnvelopeResponseFromServer); documentResponse.LoadXml(fullEnvelopeResponseFromServer);
XmlNamespaceManager nsmgr = new XmlNamespaceManager(documentResponse.NameTable); XmlNamespaceManager nsmgr = new XmlNamespaceManager(documentResponse.NameTable);
nsmgr.AddNamespace("myns1", "urn:schemas-microsoft-com:xml-analysis"); nsmgr.AddNamespace("myns1", "urn:schemas-microsoft-com:xml-analysis");
nsmgr.AddNamespace("myns2", "urn:schemas-microsoft-com:xml-analysis:rowset"); nsmgr.AddNamespace("myns2", "urn:schemas-microsoft-com:xml-analysis:rowset");
XmlNodeList rows = documentResponse.SelectNodes("//myns1:ExecuteResponse/myns1:return/myns2:root/myns2:row", nsmgr); XmlNodeList rows = documentResponse.SelectNodes("//myns1:ExecuteResponse/myns1:return/myns2:root/myns2:row", nsmgr);
return rows; return rows;
} }
public static void WriteSoapEnvelopeWithCommandStatement(XmlWriter xmlWriter, string sessionId, string commandStatement) public static void WriteSoapEnvelopeWithCommandStatement(XmlWriter xmlWriter, string sessionId, string commandStatement)
{ {
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
// This is a sample of the XMLA request we'll write: // This is a sample of the XMLA request we'll write:
// //
// <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> // <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
// <Header> // <Header>
// <Session soap:mustUnderstand="1" SessionId="THE SESSION ID HERE" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:schemas-microsoft-com:xml-analysis" /> // <Session soap:mustUnderstand="1" SessionId="THE SESSION ID HERE" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:schemas-microsoft-com:xml-analysis" />
// </Header> // </Header>
// <Body> // <Body>
// <Execute xmlns="urn:schemas-microsoft-com:xml-analysis"> // <Execute xmlns="urn:schemas-microsoft-com:xml-analysis">
// <Command> // <Command>
// <Statement> // <Statement>
// ... // ...
// </Statement> // </Statement>
// </Command> // </Command>
// <Properties/> // <Properties/>
// </Execute> // </Execute>
// </Body> // </Body>
// </Envelope> // </Envelope>
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
xmlWriter.WriteStartElement("Envelope", "http://schemas.xmlsoap.org/soap/envelope/"); xmlWriter.WriteStartElement("Envelope", "http://schemas.xmlsoap.org/soap/envelope/");
xmlWriter.WriteStartElement("Header"); xmlWriter.WriteStartElement("Header");
if (sessionId != null) if (sessionId != null)
{ {
xmlWriter.WriteStartElement("Session", "urn:schemas-microsoft-com:xml-analysis"); xmlWriter.WriteStartElement("Session", "urn:schemas-microsoft-com:xml-analysis");
xmlWriter.WriteAttributeString("soap", "mustUnderstand", "http://schemas.xmlsoap.org/soap/envelope/", "1"); xmlWriter.WriteAttributeString("soap", "mustUnderstand", "http://schemas.xmlsoap.org/soap/envelope/", "1");
xmlWriter.WriteAttributeString("SessionId", sessionId); xmlWriter.WriteAttributeString("SessionId", sessionId);
xmlWriter.WriteEndElement(); // </Session> xmlWriter.WriteEndElement(); // </Session>
} }
xmlWriter.WriteEndElement(); // </Header> xmlWriter.WriteEndElement(); // </Header>
xmlWriter.WriteStartElement("Body"); xmlWriter.WriteStartElement("Body");
xmlWriter.WriteStartElement("Execute", "urn:schemas-microsoft-com:xml-analysis"); xmlWriter.WriteStartElement("Execute", "urn:schemas-microsoft-com:xml-analysis");
xmlWriter.WriteStartElement("Command"); xmlWriter.WriteStartElement("Command");
xmlWriter.WriteElementString("Statement", commandStatement); xmlWriter.WriteElementString("Statement", commandStatement);
xmlWriter.WriteEndElement(); // </Command> xmlWriter.WriteEndElement(); // </Command>
xmlWriter.WriteStartElement("Properties"); xmlWriter.WriteStartElement("Properties");
xmlWriter.WriteEndElement(); // </Properties> xmlWriter.WriteEndElement(); // </Properties>
xmlWriter.WriteEndElement(); // </Execute> xmlWriter.WriteEndElement(); // </Execute>
xmlWriter.WriteEndElement(); // </Body> xmlWriter.WriteEndElement(); // </Body>
xmlWriter.WriteEndElement(); // </Envelope> xmlWriter.WriteEndElement(); // </Envelope>
} }
private void btnConnect_Click(object sender, EventArgs e) private void btnConnect_Click(object sender, EventArgs e)
{ {
Connect(); Connect();
} }
private void Connect() private void Connect()
{ {
try try
{ {
Connect connForm = new Connect(); Connect connForm = new Connect();
connForm.StartPosition = FormStartPosition.CenterParent; connForm.StartPosition = FormStartPosition.CenterParent;
connForm.ShowDialog(); connForm.ShowDialog();
if (connForm.DialogResult == DialogResult.OK) if (connForm.DialogResult == DialogResult.OK)
{ {
_timer.Enabled = false; _timer.Enabled = false;
if (connForm.IntegratedAuth) if (connForm.IntegratedAuth)
_serverConnectionString = $"Provider=MSOLAP;Data Source={connForm.ServerName};"; _serverConnectionString = $"Provider=MSOLAP;Data Source={connForm.ServerName};";
else else
_serverConnectionString = $"Provider=MSOLAP;Data Source={connForm.ServerName};User ID={connForm.UserName};Password={connForm.Passwrod};Persist Security Info=True;Impersonation Level=Impersonate;"; _serverConnectionString = $"Provider=MSOLAP;Data Source={connForm.ServerName};User ID={connForm.UserName};Password={connForm.Passwrod};Persist Security Info=True;Impersonation Level=Impersonate;";
_server = new Tom.Server(); _server = new Tom.Server();
_server.Connect(_serverConnectionString); _server.Connect(_serverConnectionString);
_connectionTime = DateTime.Now; _connectionTime = DateTime.Now;
if (_server.ServerProperties.Count == 0) if (_server.ServerProperties.Count == 0)
{ {
throw new ConnectionException("User is not AS admin."); throw new ConnectionException("User is not AS admin.");
} }
chartControl.Titles.Clear(); chartControl.Titles.Clear();
chartControl.Titles.Add(connForm.ServerName); chartControl.Titles.Add(connForm.ServerName);
chartControl.Titles[0].Font = new Font(Font.FontFamily, _smallestFont + 4); chartControl.Titles[0].Font = new Font(Font.FontFamily, _smallestFont + 4);
InitializeChart(true); InitializeChart(true);
_timer.Interval = connForm.SampleInterval; _timer.Interval = connForm.SampleInterval;
_timer.Enabled = true; _timer.Enabled = true;
Settings.Default.ServerName = connForm.ServerName; Settings.Default.ServerName = connForm.ServerName;
Settings.Default.UserName = connForm.UserName; Settings.Default.UserName = connForm.UserName;
Settings.Default.SampleInterval = connForm.SampleInterval; Settings.Default.SampleInterval = connForm.SampleInterval;
Settings.Default.IntegratedAuth = connForm.IntegratedAuth; Settings.Default.IntegratedAuth = connForm.IntegratedAuth;
Settings.Default.Save(); Settings.Default.Save();
} }
} }
catch (Exception exc) catch (Exception exc)
{ {
MessageBox.Show($"Cannot connect.\n{exc.Message}", "AS PerfMon", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show($"Cannot connect.\n{exc.Message}", "AS PerfMon", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
private void ASPerfMon_FormClosing(object sender, FormClosingEventArgs e) private void ASPerfMon_FormClosing(object sender, FormClosingEventArgs e)
{ {
Disconnect(); Disconnect();
} }
private void Disconnect() private void Disconnect()
{ {
try try
{ {
if (_server != null) _server.Disconnect(); if (_server != null) _server.Disconnect();
} }
catch { } catch { }
} }
private void chartControl_GetToolTipText(object sender, ToolTipEventArgs e) private void chartControl_GetToolTipText(object sender, ToolTipEventArgs e)
{ {
//Event handler has to be hooked up in order to display tooltip (!) //Event handler has to be hooked up in order to display tooltip (!)
} }
private void ASPerfMon_Shown(object sender, EventArgs e) private void ASPerfMon_Shown(object sender, EventArgs e)
{ {
Connect(); Connect();
} }
} }
} }

View File

@ -1,160 +1,160 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{B2442578-2C46-47D2-B5FB-57096C234552}</ProjectGuid> <ProjectGuid>{B2442578-2C46-47D2-B5FB-57096C234552}</ProjectGuid>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ASPerfMon</RootNamespace> <RootNamespace>ASPerfMon</RootNamespace>
<AssemblyName>ASPerfMon</AssemblyName> <AssemblyName>ASPerfMon</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<PublishUrl>publish\</PublishUrl> <PublishUrl>publish\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled> <UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode> <UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval> <UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits> <UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically> <UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired> <UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions> <MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision> <ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper> <IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust> <UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled> <BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath> <OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<ApplicationIcon>Chart.ico</ApplicationIcon> <ApplicationIcon>Chart.ico</ApplicationIcon>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Microsoft.AnalysisServices, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"> <Reference Include="Microsoft.AnalysisServices, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\Microsoft.AnalysisServices.DLL</HintPath> <HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\Microsoft.AnalysisServices.DLL</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.AnalysisServices.Core, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"> <Reference Include="Microsoft.AnalysisServices.Core, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\Microsoft.AnalysisServices.Core.DLL</HintPath> <HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\Microsoft.AnalysisServices.Core.DLL</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.AnalysisServices.Tabular, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"> <Reference Include="Microsoft.AnalysisServices.Tabular, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\Microsoft.AnalysisServices.Tabular.DLL</HintPath> <HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\Microsoft.AnalysisServices.Tabular.DLL</HintPath>
</Reference> </Reference>
<Reference Include="Microsoft.AnalysisServices.Tabular.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"> <Reference Include="Microsoft.AnalysisServices.Tabular.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\Microsoft.AnalysisServices.Tabular.Json.DLL</HintPath> <HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\Microsoft.AnalysisServices.Tabular.Json.DLL</HintPath>
</Reference> </Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Windows.Forms.DataVisualization" /> <Reference Include="System.Windows.Forms.DataVisualization" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Deployment" /> <Reference Include="System.Deployment" />
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" /> <Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="ASPerfMon.cs"> <Compile Include="ASPerfMon.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="ASPerfMon.Designer.cs"> <Compile Include="ASPerfMon.Designer.cs">
<DependentUpon>ASPerfMon.cs</DependentUpon> <DependentUpon>ASPerfMon.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Connect.cs"> <Compile Include="Connect.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Connect.Designer.cs"> <Compile Include="Connect.Designer.cs">
<DependentUpon>Connect.cs</DependentUpon> <DependentUpon>Connect.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Settings.Designer.cs"> <Compile Include="Settings.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput> <DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon> <DependentUpon>Settings.settings</DependentUpon>
</Compile> </Compile>
<EmbeddedResource Include="ASPerfMon.resx"> <EmbeddedResource Include="ASPerfMon.resx">
<DependentUpon>ASPerfMon.cs</DependentUpon> <DependentUpon>ASPerfMon.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Connect.resx"> <EmbeddedResource Include="Connect.resx">
<DependentUpon>Connect.cs</DependentUpon> <DependentUpon>Connect.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs"> <Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
</Compile> </Compile>
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput> <LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None> </None>
<Compile Include="Properties\Settings.Designer.cs"> <Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon> <DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput> <DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile> </Compile>
<None Include="Settings.settings"> <None Include="Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput> <LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None> </None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="App.config" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="Chart.ico" /> <Content Include="Chart.ico" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.5.2"> <BootstrapperPackage Include=".NETFramework,Version=v4.5.2">
<Visible>False</Visible> <Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.5.2 %28x86 and x64%29</ProductName> <ProductName>Microsoft .NET Framework 4.5.2 %28x86 and x64%29</ProductName>
<Install>true</Install> <Install>true</Install>
</BootstrapperPackage> </BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible> <Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName> <ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install> <Install>false</Install>
</BootstrapperPackage> </BootstrapperPackage>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
</Target> </Target>
<Target Name="AfterBuild"> <Target Name="AfterBuild">
</Target> </Target>
--> -->
</Project> </Project>

File diff suppressed because it is too large Load Diff

View File

@ -1,27 +1,27 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<configuration> <configuration>
<configSections> <configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="ASPerfMon.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> <section name="ASPerfMon.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup> </sectionGroup>
</configSections> </configSections>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup> </startup>
<userSettings> <userSettings>
<ASPerfMon.Settings> <ASPerfMon.Settings>
<setting name="ServerName" serializeAs="String"> <setting name="ServerName" serializeAs="String">
<value /> <value />
</setting> </setting>
<setting name="UserName" serializeAs="String"> <setting name="UserName" serializeAs="String">
<value /> <value />
</setting> </setting>
<setting name="SampleInterval" serializeAs="String"> <setting name="SampleInterval" serializeAs="String">
<value>2500</value> <value>2500</value>
</setting> </setting>
<setting name="IntegratedAuth" serializeAs="String"> <setting name="IntegratedAuth" serializeAs="String">
<value>False</value> <value>False</value>
</setting> </setting>
</ASPerfMon.Settings> </ASPerfMon.Settings>
</userSettings> </userSettings>
</configuration> </configuration>

View File

@ -1,210 +1,210 @@
namespace ASPerfMon namespace ASPerfMon
{ {
partial class Connect partial class Connect
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
/// </summary> /// </summary>
private System.ComponentModel.IContainer components = null; private System.ComponentModel.IContainer components = null;
/// <summary> /// <summary>
/// Clean up any resources being used. /// Clean up any resources being used.
/// </summary> /// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) protected override void Dispose(bool disposing)
{ {
if (disposing && (components != null)) if (disposing && (components != null))
{ {
components.Dispose(); components.Dispose();
} }
base.Dispose(disposing); base.Dispose(disposing);
} }
#region Windows Form Designer generated code #region Windows Form Designer generated code
/// <summary> /// <summary>
/// Required method for Designer support - do not modify /// Required method for Designer support - do not modify
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.btnOK = new System.Windows.Forms.Button(); this.btnOK = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button();
this.txtUserName = new System.Windows.Forms.TextBox(); this.txtUserName = new System.Windows.Forms.TextBox();
this.txtServer = new System.Windows.Forms.TextBox(); this.txtServer = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.chkIntegratedAuth = new System.Windows.Forms.CheckBox(); this.chkIntegratedAuth = new System.Windows.Forms.CheckBox();
this.txtPassword = new System.Windows.Forms.TextBox(); this.txtPassword = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txtSampleInterval = new System.Windows.Forms.TextBox(); this.txtSampleInterval = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// btnOK // btnOK
// //
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.Location = new System.Drawing.Point(264, 179); this.btnOK.Location = new System.Drawing.Point(264, 179);
this.btnOK.Name = "btnOK"; this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(75, 23); this.btnOK.Size = new System.Drawing.Size(75, 23);
this.btnOK.TabIndex = 0; this.btnOK.TabIndex = 0;
this.btnOK.Text = "OK"; this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true; this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new System.EventHandler(this.btnOK_Click); this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
// //
// btnCancel // btnCancel
// //
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(345, 179); this.btnCancel.Location = new System.Drawing.Point(345, 179);
this.btnCancel.Name = "btnCancel"; this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 23); this.btnCancel.Size = new System.Drawing.Size(75, 23);
this.btnCancel.TabIndex = 1; this.btnCancel.TabIndex = 1;
this.btnCancel.Text = "Cancel"; this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.UseVisualStyleBackColor = true;
// //
// txtUserName // txtUserName
// //
this.txtUserName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.txtUserName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.txtUserName.Location = new System.Drawing.Point(111, 62); this.txtUserName.Location = new System.Drawing.Point(111, 62);
this.txtUserName.Name = "txtUserName"; this.txtUserName.Name = "txtUserName";
this.txtUserName.Size = new System.Drawing.Size(310, 20); this.txtUserName.Size = new System.Drawing.Size(310, 20);
this.txtUserName.TabIndex = 10; this.txtUserName.TabIndex = 10;
// //
// txtServer // txtServer
// //
this.txtServer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.txtServer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.txtServer.Location = new System.Drawing.Point(111, 13); this.txtServer.Location = new System.Drawing.Point(111, 13);
this.txtServer.Name = "txtServer"; this.txtServer.Name = "txtServer";
this.txtServer.Size = new System.Drawing.Size(310, 20); this.txtServer.Size = new System.Drawing.Size(310, 20);
this.txtServer.TabIndex = 1; this.txtServer.TabIndex = 1;
// //
// label3 // label3
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(6, 65); this.label3.Location = new System.Drawing.Point(6, 65);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(63, 13); this.label3.Size = new System.Drawing.Size(63, 13);
this.label3.TabIndex = 8; this.label3.TabIndex = 8;
this.label3.Text = "User Name:"; this.label3.Text = "User Name:";
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 16); this.label1.Location = new System.Drawing.Point(6, 16);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 13); this.label1.Size = new System.Drawing.Size(41, 13);
this.label1.TabIndex = 6; this.label1.TabIndex = 6;
this.label1.Text = "Server:"; this.label1.Text = "Server:";
// //
// chkIntegratedAuth // chkIntegratedAuth
// //
this.chkIntegratedAuth.AutoSize = true; this.chkIntegratedAuth.AutoSize = true;
this.chkIntegratedAuth.Location = new System.Drawing.Point(111, 39); this.chkIntegratedAuth.Location = new System.Drawing.Point(111, 39);
this.chkIntegratedAuth.Name = "chkIntegratedAuth"; this.chkIntegratedAuth.Name = "chkIntegratedAuth";
this.chkIntegratedAuth.Size = new System.Drawing.Size(145, 17); this.chkIntegratedAuth.Size = new System.Drawing.Size(145, 17);
this.chkIntegratedAuth.TabIndex = 2; this.chkIntegratedAuth.TabIndex = 2;
this.chkIntegratedAuth.Text = "Integrated Authentication"; this.chkIntegratedAuth.Text = "Integrated Authentication";
this.chkIntegratedAuth.UseVisualStyleBackColor = true; this.chkIntegratedAuth.UseVisualStyleBackColor = true;
this.chkIntegratedAuth.CheckedChanged += new System.EventHandler(this.chkIntegratedAuth_CheckedChanged); this.chkIntegratedAuth.CheckedChanged += new System.EventHandler(this.chkIntegratedAuth_CheckedChanged);
// //
// txtPassword // txtPassword
// //
this.txtPassword.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.txtPassword.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.txtPassword.Location = new System.Drawing.Point(111, 88); this.txtPassword.Location = new System.Drawing.Point(111, 88);
this.txtPassword.Name = "txtPassword"; this.txtPassword.Name = "txtPassword";
this.txtPassword.PasswordChar = '*'; this.txtPassword.PasswordChar = '*';
this.txtPassword.Size = new System.Drawing.Size(310, 20); this.txtPassword.Size = new System.Drawing.Size(310, 20);
this.txtPassword.TabIndex = 13; this.txtPassword.TabIndex = 13;
// //
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 91); this.label2.Location = new System.Drawing.Point(6, 91);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 13); this.label2.Size = new System.Drawing.Size(56, 13);
this.label2.TabIndex = 12; this.label2.TabIndex = 12;
this.label2.Text = "Password:"; this.label2.Text = "Password:";
// //
// groupBox1 // groupBox1
// //
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.txtUserName); this.groupBox1.Controls.Add(this.txtUserName);
this.groupBox1.Controls.Add(this.txtPassword); this.groupBox1.Controls.Add(this.txtPassword);
this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.chkIntegratedAuth); this.groupBox1.Controls.Add(this.chkIntegratedAuth);
this.groupBox1.Controls.Add(this.txtServer); this.groupBox1.Controls.Add(this.txtServer);
this.groupBox1.Location = new System.Drawing.Point(12, 12); this.groupBox1.Location = new System.Drawing.Point(12, 12);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(427, 123); this.groupBox1.Size = new System.Drawing.Size(427, 123);
this.groupBox1.TabIndex = 14; this.groupBox1.TabIndex = 14;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
// //
// txtSampleInterval // txtSampleInterval
// //
this.txtSampleInterval.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.txtSampleInterval.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.txtSampleInterval.Location = new System.Drawing.Point(123, 141); this.txtSampleInterval.Location = new System.Drawing.Point(123, 141);
this.txtSampleInterval.Name = "txtSampleInterval"; this.txtSampleInterval.Name = "txtSampleInterval";
this.txtSampleInterval.Size = new System.Drawing.Size(310, 20); this.txtSampleInterval.Size = new System.Drawing.Size(310, 20);
this.txtSampleInterval.TabIndex = 15; this.txtSampleInterval.TabIndex = 15;
this.txtSampleInterval.Text = "1000"; this.txtSampleInterval.Text = "1000";
// //
// label4 // label4
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(18, 144); this.label4.Location = new System.Drawing.Point(18, 144);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(105, 13); this.label4.Size = new System.Drawing.Size(105, 13);
this.label4.TabIndex = 14; this.label4.TabIndex = 14;
this.label4.Text = "Sample Interval (ms):"; this.label4.Text = "Sample Interval (ms):";
// //
// Connect // Connect
// //
this.AcceptButton = this.btnOK; this.AcceptButton = this.btnOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel; this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(450, 219); this.ClientSize = new System.Drawing.Size(450, 219);
this.Controls.Add(this.txtSampleInterval); this.Controls.Add(this.txtSampleInterval);
this.Controls.Add(this.label4); this.Controls.Add(this.label4);
this.Controls.Add(this.groupBox1); this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOK); this.Controls.Add(this.btnOK);
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "Connect"; this.Name = "Connect";
this.ShowIcon = false; this.ShowIcon = false;
this.Text = "Connect"; this.Text = "Connect";
this.Load += new System.EventHandler(this.Connect_Load); this.Load += new System.EventHandler(this.Connect_Load);
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
} }
#endregion #endregion
private System.Windows.Forms.Button btnOK; private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.Button btnCancel; private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.TextBox txtUserName; private System.Windows.Forms.TextBox txtUserName;
private System.Windows.Forms.TextBox txtServer; private System.Windows.Forms.TextBox txtServer;
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.CheckBox chkIntegratedAuth; private System.Windows.Forms.CheckBox chkIntegratedAuth;
private System.Windows.Forms.TextBox txtPassword; private System.Windows.Forms.TextBox txtPassword;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox txtSampleInterval; private System.Windows.Forms.TextBox txtSampleInterval;
private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label4;
} }
} }

View File

@ -1,70 +1,70 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace ASPerfMon namespace ASPerfMon
{ {
public partial class Connect : Form public partial class Connect : Form
{ {
public string ServerName { get; set; } public string ServerName { get; set; }
public bool IntegratedAuth { get; set; } public bool IntegratedAuth { get; set; }
public string UserName { get; set; } public string UserName { get; set; }
public string Passwrod { get; set; } public string Passwrod { get; set; }
public int SampleInterval { get; set; } public int SampleInterval { get; set; }
public Connect() public Connect()
{ {
InitializeComponent(); InitializeComponent();
} }
private void Connect_Load(object sender, EventArgs e) private void Connect_Load(object sender, EventArgs e)
{ {
this.txtServer.Text = Settings.Default.ServerName; this.txtServer.Text = Settings.Default.ServerName;
this.chkIntegratedAuth.Checked = Settings.Default.IntegratedAuth; this.chkIntegratedAuth.Checked = Settings.Default.IntegratedAuth;
this.txtUserName.Text = Settings.Default.UserName; this.txtUserName.Text = Settings.Default.UserName;
this.txtSampleInterval.Text = Settings.Default.SampleInterval.ToString(); this.txtSampleInterval.Text = Settings.Default.SampleInterval.ToString();
this.txtServer.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txt_MouseDown); this.txtServer.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txt_MouseDown);
this.txtUserName.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txt_MouseDown); this.txtUserName.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txt_MouseDown);
this.txtPassword.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txt_MouseDown); this.txtPassword.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txt_MouseDown);
this.txtSampleInterval.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txt_MouseDown); this.txtSampleInterval.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txt_MouseDown);
} }
private void chkIntegratedAuth_CheckedChanged(object sender, EventArgs e) private void chkIntegratedAuth_CheckedChanged(object sender, EventArgs e)
{ {
txtUserName.Enabled = !chkIntegratedAuth.Checked; txtUserName.Enabled = !chkIntegratedAuth.Checked;
txtPassword.Enabled = !chkIntegratedAuth.Checked; txtPassword.Enabled = !chkIntegratedAuth.Checked;
} }
private void btnOK_Click(object sender, EventArgs e) private void btnOK_Click(object sender, EventArgs e)
{ {
int sampleInterval; int sampleInterval;
if (!int.TryParse(txtSampleInterval.Text, out sampleInterval)) if (!int.TryParse(txtSampleInterval.Text, out sampleInterval))
{ {
MessageBox.Show("Sample Interval must be a positive integer", "AS PerfMon", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show("Sample Interval must be a positive integer", "AS PerfMon", MessageBoxButtons.OK, MessageBoxIcon.Error);
return; return;
} }
this.ServerName = txtServer.Text; this.ServerName = txtServer.Text;
this.IntegratedAuth = chkIntegratedAuth.Checked; this.IntegratedAuth = chkIntegratedAuth.Checked;
this.UserName = txtUserName.Text; this.UserName = txtUserName.Text;
this.Passwrod = txtPassword.Text; this.Passwrod = txtPassword.Text;
this.SampleInterval = sampleInterval; this.SampleInterval = sampleInterval;
this.DialogResult = DialogResult.OK; this.DialogResult = DialogResult.OK;
} }
private void txt_MouseDown(object sender, MouseEventArgs e) private void txt_MouseDown(object sender, MouseEventArgs e)
{ {
TextBox textBox = (TextBox)sender; TextBox textBox = (TextBox)sender;
textBox.SelectAll(); textBox.SelectAll();
} }
} }
} }

View File

@ -1,123 +1,123 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value> <value>[base64 mime encoded serialized .NET Framework object]</value>
</data> </data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
--> -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata"> <xsd:element name="metadata">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="data"> <xsd:element name="data">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" /> <xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" /> <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:choice> </xsd:choice>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:schema> </xsd:schema>
<resheader name="resmimetype"> <resheader name="resmimetype">
<value>text/microsoft-resx</value> <value>text/microsoft-resx</value>
</resheader> </resheader>
<resheader name="version"> <resheader name="version">
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
</root> </root>

View File

@ -1,23 +1,23 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace ASPerfMon namespace ASPerfMon
{ {
static class Program static class Program
{ {
/// <summary> /// <summary>
/// The main entry point for the application. /// The main entry point for the application.
/// </summary> /// </summary>
[STAThread] [STAThread]
static void Main() static void Main()
{ {
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new ASPerfMon()); Application.Run(new ASPerfMon());
} }
} }
} }

View File

@ -1,36 +1,36 @@
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("ASPerfMon")] [assembly: AssemblyTitle("ASPerfMon")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft Corporation")] [assembly: AssemblyCompany("Microsoft Corporation")]
[assembly: AssemblyProduct("ASPerfMon")] [assembly: AssemblyProduct("ASPerfMon")]
[assembly: AssemblyCopyright("Copyright © Microsoft Corporation 2016")] [assembly: AssemblyCopyright("Copyright © Microsoft Corporation 2016")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible // Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from // to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type. // COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)] [assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM // The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("b2442578-2c46-47d2-b5fb-57096c234552")] [assembly: Guid("b2442578-2c46-47d2-b5fb-57096c234552")]
// Version information for an assembly consists of the following four values: // Version information for an assembly consists of the following four values:
// //
// Major Version // Major Version
// Minor Version // Minor Version
// Build Number // Build Number
// Revision // Revision
// //
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,63 +1,63 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:4.0.30319.42000 // Runtime Version:4.0.30319.42000
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace ASPerfMon.Properties { namespace ASPerfMon.Properties {
using System; using System;
/// <summary> /// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc. /// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary> /// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder // This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources { internal class Resources {
private static global::System.Resources.ResourceManager resourceMan; private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture; private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() { internal Resources() {
} }
/// <summary> /// <summary>
/// Returns the cached ResourceManager instance used by this class. /// Returns the cached ResourceManager instance used by this class.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager { internal static global::System.Resources.ResourceManager ResourceManager {
get { get {
if (object.ReferenceEquals(resourceMan, null)) { if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ASPerfMon.Properties.Resources", typeof(Resources).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ASPerfMon.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
} }
} }
/// <summary> /// <summary>
/// Overrides the current thread's CurrentUICulture property for all /// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class. /// resource lookups using this strongly typed resource class.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture { internal static global::System.Globalization.CultureInfo Culture {
get { get {
return resourceCulture; return resourceCulture;
} }
set { set {
resourceCulture = value; resourceCulture = value;
} }
} }
} }
} }

View File

@ -1,117 +1,117 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
The primary goals of this format is to allow a simple XML format The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes various data types are done through the TypeConverter classes
associated with the data types. associated with the data types.
Example: Example:
... ado.net/XML headers & schema ... ... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader> <resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value> <value>[base64 mime encoded serialized .NET Framework object]</value>
</data> </data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment> <comment>This is a comment</comment>
</data> </data>
There are any number of "resheader" rows that contain simple There are any number of "resheader" rows that contain simple
name/value pairs. name/value pairs.
Each data row contains a name, and value. The row also contains a Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture. text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the Classes that don't support this are serialized and stored with the
mimetype set. mimetype set.
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below. read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter : System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter : using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
--> -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata"> <xsd:element name="metadata">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
<xsd:complexType> <xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="data"> <xsd:element name="data">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
<xsd:complexType> <xsd:complexType>
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" /> <xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:choice> </xsd:choice>
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
</xsd:schema> </xsd:schema>
<resheader name="resmimetype"> <resheader name="resmimetype">
<value>text/microsoft-resx</value> <value>text/microsoft-resx</value>
</resheader> </resheader>
<resheader name="version"> <resheader name="version">
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
</root> </root>

View File

@ -1,26 +1,26 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:4.0.30319.42000 // Runtime Version:4.0.30319.42000
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace ASPerfMon.Properties { namespace ASPerfMon.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default { public static Settings Default {
get { get {
return defaultInstance; return defaultInstance;
} }
} }
} }
} }

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles> <Profiles>
<Profile Name="(Default)" /> <Profile Name="(Default)" />
</Profiles> </Profiles>
<Settings /> <Settings />
</SettingsFile> </SettingsFile>

View File

@ -1,74 +1,74 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:4.0.30319.42000 // Runtime Version:4.0.30319.42000
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace ASPerfMon { namespace ASPerfMon {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default { public static Settings Default {
get { get {
return defaultInstance; return defaultInstance;
} }
} }
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")] [global::System.Configuration.DefaultSettingValueAttribute("")]
public string ServerName { public string ServerName {
get { get {
return ((string)(this["ServerName"])); return ((string)(this["ServerName"]));
} }
set { set {
this["ServerName"] = value; this["ServerName"] = value;
} }
} }
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")] [global::System.Configuration.DefaultSettingValueAttribute("")]
public string UserName { public string UserName {
get { get {
return ((string)(this["UserName"])); return ((string)(this["UserName"]));
} }
set { set {
this["UserName"] = value; this["UserName"] = value;
} }
} }
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("2500")] [global::System.Configuration.DefaultSettingValueAttribute("2500")]
public int SampleInterval { public int SampleInterval {
get { get {
return ((int)(this["SampleInterval"])); return ((int)(this["SampleInterval"]));
} }
set { set {
this["SampleInterval"] = value; this["SampleInterval"] = value;
} }
} }
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")] [global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool IntegratedAuth { public bool IntegratedAuth {
get { get {
return ((bool)(this["IntegratedAuth"])); return ((bool)(this["IntegratedAuth"]));
} }
set { set {
this["IntegratedAuth"] = value; this["IntegratedAuth"] = value;
} }
} }
} }
} }

View File

@ -1,18 +1,18 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="ASPerfMon" GeneratedClassName="Settings"> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="ASPerfMon" GeneratedClassName="Settings">
<Profiles /> <Profiles />
<Settings> <Settings>
<Setting Name="ServerName" Type="System.String" Scope="User"> <Setting Name="ServerName" Type="System.String" Scope="User">
<Value Profile="(Default)" /> <Value Profile="(Default)" />
</Setting> </Setting>
<Setting Name="UserName" Type="System.String" Scope="User"> <Setting Name="UserName" Type="System.String" Scope="User">
<Value Profile="(Default)" /> <Value Profile="(Default)" />
</Setting> </Setting>
<Setting Name="SampleInterval" Type="System.Int32" Scope="User"> <Setting Name="SampleInterval" Type="System.Int32" Scope="User">
<Value Profile="(Default)">2500</Value> <Value Profile="(Default)">2500</Value>
</Setting> </Setting>
<Setting Name="IntegratedAuth" Type="System.Boolean" Scope="User"> <Setting Name="IntegratedAuth" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value> <Value Profile="(Default)">False</Value>
</Setting> </Setting>
</Settings> </Settings>
</SettingsFile> </SettingsFile>

View File

@ -1,27 +1,27 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<configuration> <configuration>
<configSections> <configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="ASPerfMon.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> <section name="ASPerfMon.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup> </sectionGroup>
</configSections> </configSections>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup> </startup>
<userSettings> <userSettings>
<ASPerfMon.Settings> <ASPerfMon.Settings>
<setting name="ServerName" serializeAs="String"> <setting name="ServerName" serializeAs="String">
<value /> <value />
</setting> </setting>
<setting name="UserName" serializeAs="String"> <setting name="UserName" serializeAs="String">
<value /> <value />
</setting> </setting>
<setting name="SampleInterval" serializeAs="String"> <setting name="SampleInterval" serializeAs="String">
<value>2500</value> <value>2500</value>
</setting> </setting>
<setting name="IntegratedAuth" serializeAs="String"> <setting name="IntegratedAuth" serializeAs="String">
<value>False</value> <value>False</value>
</setting> </setting>
</ASPerfMon.Settings> </ASPerfMon.Settings>
</userSettings> </userSettings>
</configuration> </configuration>

View File

@ -1,27 +1,27 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<configuration> <configuration>
<configSections> <configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="ASPerfMon.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> <section name="ASPerfMon.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup> </sectionGroup>
</configSections> </configSections>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup> </startup>
<userSettings> <userSettings>
<ASPerfMon.Settings> <ASPerfMon.Settings>
<setting name="ServerName" serializeAs="String"> <setting name="ServerName" serializeAs="String">
<value /> <value />
</setting> </setting>
<setting name="UserName" serializeAs="String"> <setting name="UserName" serializeAs="String">
<value /> <value />
</setting> </setting>
<setting name="SampleInterval" serializeAs="String"> <setting name="SampleInterval" serializeAs="String">
<value>2500</value> <value>2500</value>
</setting> </setting>
<setting name="IntegratedAuth" serializeAs="String"> <setting name="IntegratedAuth" serializeAs="String">
<value>False</value> <value>False</value>
</setting> </setting>
</ASPerfMon.Settings> </ASPerfMon.Settings>
</userSettings> </userSettings>
</configuration> </configuration>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security> <security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/> <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges> </requestedPrivileges>
</security> </security>
</trustInfo> </trustInfo>
</assembly> </assembly>

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="Microsoft.AnalysisServices.AdomdClient" version="12.0.2000.8" targetFramework="net452" /> <package id="Microsoft.AnalysisServices.AdomdClient" version="12.0.2000.8" targetFramework="net452" />
</packages> </packages>

View File

@ -1,4 +1,4 @@
Monitor Analysis Services memory usage broken out by database and other high-level allocations in a stacked bar that increments at set interval. Useful during processing especially with multiple databases on same server. Monitor Analysis Services memory usage broken out by database and other high-level allocations in a stacked bar that increments at set interval. Useful during processing especially with multiple databases on same server.
![alt text](AsPerfMon.png "Stacked bar by memory allocation") ![alt text](AsPerfMon.png "Stacked bar by memory allocation")