C# Class Microsoft.AzureCat.Samples.DeviceSimulator.MainForm

Inheritance: System.Windows.Forms.Form
Mostra file Open project: paolosalvatori/servicefabriceventhubdemo

Public Methods

Method Description
Combine ( string uri1, string uri2 ) : string
ConfigureComponent ( ) : void
CreateSasTokenForAmqpSender ( string senderKeyName, string senderKey, string serviceNamespace, string hubName, string publisherName, System.TimeSpan tokenTimeToLive ) : string
HandleException ( Exception ex ) : void
IndentJson ( string json ) : string
IsJson ( string item ) : bool
MainForm ( ) : System

Initializes a new instance of the MainForm class.

Private Methods

Method Description
CreateSasTokenForHttpsSender ( string senderKeyName, string senderKey, string serviceNamespace, string hubName, string publisherName, System.TimeSpan tokenTimeToLive ) : string
GetValue ( int minValue, int maxValue, int minOffset, int maxOffset, int spikePercentage ) : int
InitializeDevicesAsync ( ) : Task
InternalWriteToLog ( string message ) : void
MainForm_Paint ( object sender, PaintEventArgs e ) : void
MainForm_Shown ( object sender, EventArgs e ) : void
ReadConfiguration ( ) : void
StartDevices ( ) : void
StopDevices ( ) : void
ValidateParameters ( ) : bool
WriteToLog ( string message ) : void
aboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void
btnClear_Click ( object sender, EventArgs e ) : void
btnStart_Click ( object sender, EventArgs e ) : void
button_MouseEnter ( object sender, EventArgs e ) : void
button_MouseLeave ( object sender, EventArgs e ) : void
clearLogToolStripMenuItem_Click ( object sender, EventArgs e ) : void
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
grouperDeviceManagement_CustomPaint ( PaintEventArgs e ) : void
grouperEventHub_CustomPaint ( PaintEventArgs e ) : void
logWindowToolStripMenuItem_Click ( object sender, EventArgs e ) : void
lstLog_Leave ( object sender, EventArgs e ) : void
saveLogToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Saves the log to a text file

Method Details

Combine() public static method

public static Combine ( string uri1, string uri2 ) : string
uri1 string
uri2 string
return string

ConfigureComponent() public method

public ConfigureComponent ( ) : void
return void

CreateSasTokenForAmqpSender() public static method

public static CreateSasTokenForAmqpSender ( string senderKeyName, string senderKey, string serviceNamespace, string hubName, string publisherName, System.TimeSpan tokenTimeToLive ) : string
senderKeyName string
senderKey string
serviceNamespace string
hubName string
publisherName string
tokenTimeToLive System.TimeSpan
return string

HandleException() public method

public HandleException ( Exception ex ) : void
ex System.Exception
return void

IndentJson() public method

public IndentJson ( string json ) : string
json string
return string

IsJson() public static method

public static IsJson ( string item ) : bool
item string
return bool

MainForm() public method

Initializes a new instance of the MainForm class.
public MainForm ( ) : System
return System