public void ExecuteHandler(ILocalContext localContext) { //test basic telemetry localContext.Trace("Simple trace message."); localContext.Trace(eMessageType.Warning, "Warning message."); localContext.TrackEvent("My Event Name"); }
/// <summary> /// Initializes a new instance of the <see cref="ActionExecutionJob"/> class. /// </summary> public ActionExecutionJob(Action action, IModuleManager moduleManager, IAsyncLibLog log, ILocalContext context) { _action = action; _moduleManager = moduleManager; _log = log; _context = context; }
public VoltageSummaryRepository( IApplicationVersion version, ILocalContext context) { _version = version; _context = context; }
public void Init() { _log = MockRepository.GenerateStub <IAsyncLibLog>(); _moduleManager = MockRepository.GenerateStub <IModuleManager>(); _context = MockRepository.GenerateStub <ILocalContext>(); _sut = new MultiThreadPipe(_log); }
public Form1(ILocalContext context, IContentTypeRepository contentTypeRepository, IDataTypeRepository dataTypeRepository, IBlueprintRepository blueprintRepository) { _context = context; _contentTypeRepository = contentTypeRepository; _dataTypeRepository = dataTypeRepository; _blueprintRepository = blueprintRepository; InitializeComponent(); }
public void Init() { _handler = new ExtractHandledMessageHandler(m => _message = m); _execPipe = MockRepository.GenerateMock <IExecutionPipe>(); _context = MockRepository.GenerateMock <ILocalContext>(); _handlerCreator = MockRepository.GenerateMock <IMessageHandlerCreator>(); _handlerCreator.Stub(x => x.Create <SeparateMessage>(null)) .IgnoreArguments().Return(new [] { _handler }); _sut = new ExecutionModule(_execPipe, _handlerCreator, MockRepository.GenerateStub <IModuleManager>(), MockRepository.GenerateStub <IAsyncLibLog>(), _context); }
/// <summary> /// Creates a new <see cref="MessageHandlerExecutionJob<T>"/> instance. /// </summary> public MessageHandlerExecutionJob( TMessage message, IMessageHandlerCreator handleCreator, IModuleManager moduleManager, IAsyncLibLog log, ILocalContext context) { _message = message; _handlerCreator = handleCreator; _moduleManager = moduleManager; _log = log; _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="ExecutionModule"/> class. /// </summary> public ExecutionModule( IExecutionPipe execPipe, IMessageHandlerCreator handlerCreator, IModuleManager moduleManager, IAsyncLibLog log, ILocalContext context) { _execPipe = execPipe; _handlerCreator = handlerCreator; _moduleManager = moduleManager; _log = log; _context = context; }
public ContentTypeRepository(ILocalContext context) : base(context) { }
public DataTypeRepository(ILocalContext context) : base(context) { }
public AuditEventListener(ILocalContext context) { _context = context; }
protected Repository(ILocalContext context) { this._context = context; }
public BlueprintRepository(ILocalContext context) : base(context) { }