protected override void OnExecute() { //Nested transaction MyBusinessLogic logic = new MyBusinessLogic(); logic.Execute(); }
/// <summary> /// Demonstrates the usage of an <see cref="IFloatStatistics"/> metric with dimension information. /// This sample also applies to the other metric types. /// </summary> public static void FloatStatisticsSample() { var myBusinessLogic = new MyBusinessLogic(); // The metric type and parameters should match type and parameters configured in Dynatrace. using (IFloatStatistics floatStatistics = SampleApplication.OneAgentSdk.CreateFloatStatisticsMetric("AvgResponseTimeByRegion", "MilliSecond", "Region")) { myBusinessLogic.StatisticsValueGenerated += (s, e) => floatStatistics.AddValue(e.Value, e.Region); myBusinessLogic.DoWork(); } }
public DoSomeThing() { IDataContext context = new DatabaseContext(); MyBusinessLogic logic = new MyBusinessLogic(context); }
public UserModAttribute() { var bl = new MyBusinessLogic(); _session = bl.getSessionBL(); }
public MyFrontend() { var bl = new MyBusinessLogic(); }
// GET: Base public BaseController() { var bl = new MyBusinessLogic(); _session = bl.getSessionBL(); }
public LoginController() { var bl = new MyBusinessLogic(); _session = bl.GetSessionBL(); }
public ProductController() { var bl = new MyBusinessLogic(); _product = bl.getProductBL(); }
public CookieCheckAttribute() { var businessLogic = new MyBusinessLogic(); _session = businessLogic.GetSessionBL(); }