Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:SqlAzManStore"/> class.
 /// </summary>
 /// <param name="connectionString">The connection string.</param>
 public SqlAzManStorage(string connectionString)
 {
     this.userTransaction = false;
     #if MMCDEBUG
     System.Windows.Forms.MessageBox.Show("This message is for Debug only. Attach now to the process 'MMC.EXE'.", "Debug", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
     #endif
     this.instanceGuid = Guid.NewGuid();
     this.logging = new LoggingUtility();
     //ENS Subscriptions
     this.ens = new SqlAzManENS();
     this.SubscribeToENS();
     this.ConnectionString = connectionString;
 }
Esempio n. 2
0
 private void OnDeserialized(StreamingContext context)
 {
     this.db = new NetSqlAzManStorageDataContext(this.ConnectionString);
     this.logging = new LoggingUtility();
 }