You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is a sample Custom Data Source (CDS) that understands files with the .txt extension
15
+
//
16
+
17
+
// In order for a CDS to be recognized, it MUST satisfy the following:
18
+
// a) Be a public type
19
+
// b) Have a public parameterless constructor
20
+
// c) Implement the IProcessingSource interface
21
+
// d) Be decorated with the ProcessingSourceAttribute attribute
22
+
// e) Be decorated with at least one of the derivatives of the DataSourceAttribute attribute
23
+
//
24
+
25
+
[ProcessingSource(
26
+
"{a7752cda-d80f-49f6-8022-2129ab041cd2}",// The GUID must be unique for your Custom Data Source. You can use Visual Studio's Tools -> Create Guid… tool to create a new GUID
27
+
"Cloud-Init",// The Custom Data Source MUST have a name
28
+
@"Linux Cloud-Init log parser")]// The Custom Data Source MUST have a description
29
+
[FileDataSource(
30
+
".log",// A file extension is REQUIRED
31
+
"Linux Cloud-Init Cloud Provisioning Log")]// A description is OPTIONAL. The description is what appears in the file open menu to help users understand what the file type actually is.
32
+
33
+
//
34
+
// There are two methods to creating a Custom Data Source that is recognized by the SDK:
35
+
// 1. Using the helper abstract base classes
36
+
// 2. Implementing the raw interfaces
37
+
// This sample demonstrates method 1 where the ProcessingSource abstract class
38
+
// helps provide a public parameterless constructor and implement the IProcessingSource interface
// This is a sample Custom Data Source (CDS) that understands files with the .txt extension
15
+
//
16
+
17
+
// In order for a CDS to be recognized, it MUST satisfy the following:
18
+
// a) Be a public type
19
+
// b) Have a public parameterless constructor
20
+
// c) Implement the IProcessingSource interface
21
+
// d) Be decorated with the ProcessingSourceAttribute attribute
22
+
// e) Be decorated with at least one of the derivatives of the DataSourceAttribute attribute
23
+
//
24
+
25
+
[ProcessingSource(
26
+
"{a9ac39bc-2d07-4a01-b9b5-13a02611f5f2}",// The GUID must be unique for your Custom Data Source. You can use Visual Studio's Tools -> Create Guid… tool to create a new GUID
27
+
"WaLinuxAgent",// The Custom Data Source MUST have a name
28
+
@"WaLinuxAgent log parser")]// The Custom Data Source MUST have a description
29
+
[FileDataSource(
30
+
".log",// A file extension is REQUIRED
31
+
"Linux WaLinuxAgent Cloud Provisioning Log")]// A description is OPTIONAL. The description is what appears in the file open menu to help users understand what the file type actually is.
32
+
33
+
//
34
+
// There are two methods to creating a Custom Data Source that is recognized by the SDK:
35
+
// 1. Using the helper abstract base classes
36
+
// 2. Implementing the raw interfaces
37
+
// This sample demonstrates method 1 where the ProcessingSource abstract class
38
+
// helps provide a public parameterless constructor and implement the IProcessingSource interface
// This is a sample Custom Data Source (CDS) that understands files with the .txt extension
14
+
//
15
+
16
+
// In order for a CDS to be recognized, it MUST satisfy the following:
17
+
// a) Be a public type
18
+
// b) Have a public parameterless constructor
19
+
// c) Implement the IProcessingSource interface
20
+
// d) Be decorated with the ProcessingSourceAttribute attribute
21
+
// e) Be decorated with at least one of the derivatives of the DataSourceAttribute attribute
22
+
//
23
+
24
+
[ProcessingSource(
25
+
"{EA48A279-2B4E-43A0-AC86-030113A23064}",// The GUID must be unique for your Custom Data Source. You can use Visual Studio's Tools -> Create Guid… tool to create a new GUID
26
+
"Linux Perf Txt Data",// The Custom Data Source MUST have a name
27
+
@"Linux perf.data.txt parser")]// The Custom Data Source MUST have a description
28
+
[FileDataSource(
29
+
".txt",// A file extension is REQUIRED
30
+
"Linux perf.data.txt parser")]// A description is OPTIONAL. The description is what appears in the file open menu to help users understand what the file type actually is.
31
+
32
+
//
33
+
// There are two methods to creating a Custom Data Source that is recognized by UI:
34
+
// 1. Using the helper abstract base classes
35
+
// 2. Implementing the raw interfaces
36
+
// This sample demonstrates method 1 where the ProcessingSource abstract class
37
+
// helps provide a public parameterless constructor and implement the IProcessingSource interface
0 commit comments