示例#1
0
		public WorkerWrapper(IInvokeHandler invokeHandler,
		                     NodeConfiguration nodeConfiguration,
		                     TrySendNodeStartUpNotificationToManagerTimer nodeStartUpNotificationToManagerTimer,
		                     Timer pingToManagerTimer,
		                     TrySendJobDoneStatusToManagerTimer trySendJobDoneStatusToManagerTimer,
		                     TrySendJobCanceledToManagerTimer trySendJobCanceledStatusToManagerTimer,
		                     TrySendJobFaultedToManagerTimer trySendJobFaultedStatusToManagerTimer,
		                     TrySendJobDetailToManagerTimer trySendJobDetailToManagerTimer)
		{
			_handler = invokeHandler;
			_nodeConfiguration = nodeConfiguration;
			WhoamI = _nodeConfiguration.CreateWhoIAm(Environment.MachineName);

			_nodeStartUpNotificationToManagerTimer = nodeStartUpNotificationToManagerTimer;
			_nodeStartUpNotificationToManagerTimer.TrySendNodeStartUpNotificationSucceded +=
				NodeStartUpNotificationToManagerTimer_TrySendNodeStartUpNotificationSucceded;

			_pingToManagerTimer = pingToManagerTimer;
			_trySendJobDoneStatusToManagerTimer = trySendJobDoneStatusToManagerTimer;
			_trySendJobCanceledStatusToManagerTimer = trySendJobCanceledStatusToManagerTimer;
			_trySendJobFaultedStatusToManagerTimer = trySendJobFaultedStatusToManagerTimer;
			_trySendJobDetailToManagerTimer = trySendJobDetailToManagerTimer;

			isWorking = false;

			_trySendJobDetailToManagerTimer.Start();
			_nodeStartUpNotificationToManagerTimer.Start();
		}
示例#2
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     ConnectionStatus = aHandler.ReadArgumentString("ConnectionStatus");
 }
示例#3
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Version = aHandler.ReadArgumentString("Version");
 }
 public void Add(IInvokeHandler eventHandler)
 {
     eventHandler.MustNotBeNull();
     Handlers.Add(eventHandler);
 }
示例#5
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     List = aHandler.ReadArgumentString("List");
 }
示例#6
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     PublicKey = aHandler.ReadArgumentString("PublicKey");
 }
示例#7
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     NewToken = aHandler.ReadArgumentString("NewToken");
 }
示例#8
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aSectors = aHandler.ReadArgumentUint("aSectors");
 }
示例#9
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aTotalPresets   = aHandler.ReadArgumentUint("aTotalPresets");
     aTotalBookmarks = aHandler.ReadArgumentUint("aTotalBookmarks");
 }
示例#10
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aBytes = aHandler.ReadArgumentUint("aBytes");
 }
示例#11
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aBuffer = aHandler.ReadArgumentBinary("aBuffer");
 }
示例#12
0
        public FileReaderService(
            IInvokeHandler <FileReaderService> invokeHandler)

        {
            _invokeHandler = invokeHandler;
        }
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     ConnectionID  = aHandler.ReadArgumentInt("ConnectionID");
     AVTransportID = aHandler.ReadArgumentInt("AVTransportID");
     RcsID         = aHandler.ReadArgumentInt("RcsID");
 }
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Source = aHandler.ReadArgumentString("Source");
     Sink   = aHandler.ReadArgumentString("Sink");
 }
示例#15
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     CurrentHouseholdID = aHandler.ReadArgumentString("CurrentHouseholdID");
 }
示例#16
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aPreset = aHandler.ReadArgumentUint("aPreset");
 }
示例#17
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     State = aHandler.ReadArgumentString("State");
 }
示例#18
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aBookmark = aHandler.ReadArgumentUint("aBookmark");
 }
示例#19
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     SequenceNumber = aHandler.ReadArgumentUint("SequenceNumber");
 }
示例#20
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aMetadata    = aHandler.ReadArgumentString("aMetadata");
     aFirstPreset = aHandler.ReadArgumentUint("aFirstPreset");
 }
示例#21
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Ids = aHandler.ReadArgumentString("Ids");
 }
示例#22
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aRoom = aHandler.ReadArgumentString("aRoom");
 }
示例#23
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     TrackCount = aHandler.ReadArgumentUint("TrackCount");
     Duration   = aHandler.ReadArgumentUint("Duration");
     Seconds    = aHandler.ReadArgumentUint("Seconds");
 }
示例#24
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aStandby = aHandler.ReadArgumentBool("aStandby");
 }
示例#25
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Settings = aHandler.ReadArgumentString("Settings");
 }
示例#26
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     TrackCount    = aHandler.ReadArgumentUint("TrackCount");
     DetailsCount  = aHandler.ReadArgumentUint("DetailsCount");
     MetatextCount = aHandler.ReadArgumentUint("MetatextCount");
 }
示例#27
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
 }
示例#28
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Value = aHandler.ReadArgumentString("Value");
 }
示例#29
0
 public WindowManager(IInvokeHandler invokeHandler, IContainer container)
 {
     _invokeHandler = invokeHandler;
     _container     = container;
 }
示例#30
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Uri      = aHandler.ReadArgumentString("Uri");
     Metadata = aHandler.ReadArgumentString("Metadata");
 }
 public void Add(IInvokeHandler eventHandler)
 {
     eventHandler.MustNotBeNull();
     Handlers.Add(eventHandler);          
 }
示例#32
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     CurrentZoneName = aHandler.ReadArgumentString("CurrentZoneName");
     CurrentIcon     = aHandler.ReadArgumentString("CurrentIcon");
 }