コード例 #1
0
 public void ExecuteHandler(ILocalContext localContext)
 {
     //test basic telemetry
     localContext.Trace("Simple trace message.");
     localContext.Trace(eMessageType.Warning, "Warning message.");
     localContext.TrackEvent("My Event Name");
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 public VoltageSummaryRepository(
     IApplicationVersion version,
     ILocalContext context)
 {
     _version = version;
     _context = context;
 }
コード例 #4
0
        public void Init()
        {
            _log           = MockRepository.GenerateStub <IAsyncLibLog>();
            _moduleManager = MockRepository.GenerateStub <IModuleManager>();
            _context       = MockRepository.GenerateStub <ILocalContext>();

            _sut = new MultiThreadPipe(_log);
        }
コード例 #5
0
 public Form1(ILocalContext context, IContentTypeRepository contentTypeRepository,
              IDataTypeRepository dataTypeRepository, IBlueprintRepository blueprintRepository)
 {
     _context = context;
     _contentTypeRepository = contentTypeRepository;
     _dataTypeRepository    = dataTypeRepository;
     _blueprintRepository   = blueprintRepository;
     InitializeComponent();
 }
コード例 #6
0
        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);
        }
コード例 #7
0
 /// <summary>
 /// Creates a new <see cref="MessageHandlerExecutionJob&lt;T&gt;"/> instance.
 /// </summary>
 public MessageHandlerExecutionJob(
     TMessage message,
     IMessageHandlerCreator handleCreator,
     IModuleManager moduleManager,
     IAsyncLibLog log,
     ILocalContext context)
 {
     _message        = message;
     _handlerCreator = handleCreator;
     _moduleManager  = moduleManager;
     _log            = log;
     _context        = context;
 }
コード例 #8
0
 /// <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;
 }
コード例 #9
0
 public ContentTypeRepository(ILocalContext context) : base(context)
 {
 }
コード例 #10
0
 public DataTypeRepository(ILocalContext context) : base(context)
 {
 }
コード例 #11
0
 public AuditEventListener(ILocalContext context)
 {
     _context = context;
 }
コード例 #12
0
 protected Repository(ILocalContext context)
 {
     this._context = context;
 }
コード例 #13
0
 public BlueprintRepository(ILocalContext context) : base(context)
 {
 }