Beispiel #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();
		}
Beispiel #2
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     ConnectionStatus = aHandler.ReadArgumentString("ConnectionStatus");
 }
Beispiel #3
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Version = aHandler.ReadArgumentString("Version");
 }
 public void Add(IInvokeHandler eventHandler)
 {
     eventHandler.MustNotBeNull();
     Handlers.Add(eventHandler);
 }
Beispiel #5
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     List = aHandler.ReadArgumentString("List");
 }
Beispiel #6
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     PublicKey = aHandler.ReadArgumentString("PublicKey");
 }
Beispiel #7
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     NewToken = aHandler.ReadArgumentString("NewToken");
 }
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aSectors = aHandler.ReadArgumentUint("aSectors");
 }
Beispiel #9
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aTotalPresets   = aHandler.ReadArgumentUint("aTotalPresets");
     aTotalBookmarks = aHandler.ReadArgumentUint("aTotalBookmarks");
 }
Beispiel #10
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aBytes = aHandler.ReadArgumentUint("aBytes");
 }
Beispiel #11
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aBuffer = aHandler.ReadArgumentBinary("aBuffer");
 }
Beispiel #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");
 }
Beispiel #15
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     CurrentHouseholdID = aHandler.ReadArgumentString("CurrentHouseholdID");
 }
Beispiel #16
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aPreset = aHandler.ReadArgumentUint("aPreset");
 }
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     State = aHandler.ReadArgumentString("State");
 }
Beispiel #18
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aBookmark = aHandler.ReadArgumentUint("aBookmark");
 }
Beispiel #19
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     SequenceNumber = aHandler.ReadArgumentUint("SequenceNumber");
 }
Beispiel #20
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aMetadata    = aHandler.ReadArgumentString("aMetadata");
     aFirstPreset = aHandler.ReadArgumentUint("aFirstPreset");
 }
Beispiel #21
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Ids = aHandler.ReadArgumentString("Ids");
 }
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aRoom = aHandler.ReadArgumentString("aRoom");
 }
Beispiel #23
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     TrackCount = aHandler.ReadArgumentUint("TrackCount");
     Duration   = aHandler.ReadArgumentUint("Duration");
     Seconds    = aHandler.ReadArgumentUint("Seconds");
 }
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     aStandby = aHandler.ReadArgumentBool("aStandby");
 }
Beispiel #25
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Settings = aHandler.ReadArgumentString("Settings");
 }
Beispiel #26
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     TrackCount    = aHandler.ReadArgumentUint("TrackCount");
     DetailsCount  = aHandler.ReadArgumentUint("DetailsCount");
     MetatextCount = aHandler.ReadArgumentUint("MetatextCount");
 }
Beispiel #27
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
 }
Beispiel #28
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Value = aHandler.ReadArgumentString("Value");
 }
Beispiel #29
0
 public WindowManager(IInvokeHandler invokeHandler, IContainer container)
 {
     _invokeHandler = invokeHandler;
     _container     = container;
 }
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     Uri      = aHandler.ReadArgumentString("Uri");
     Metadata = aHandler.ReadArgumentString("Metadata");
 }
 public void Add(IInvokeHandler eventHandler)
 {
     eventHandler.MustNotBeNull();
     Handlers.Add(eventHandler);          
 }
Beispiel #32
0
 internal EventArgsResponse(IInvokeHandler aHandler)
 {
     CurrentZoneName = aHandler.ReadArgumentString("CurrentZoneName");
     CurrentIcon     = aHandler.ReadArgumentString("CurrentIcon");
 }