예제 #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");
 }