Webmasters, gagnez de l'argent en affichant des bannières contextuelles Oxado
SourceForge.net Logo
Support This Project
   LeCouteauSuisse Project
Welcome ! [ Home ]  ·  [ Downloads ]  ·  [ Forums ]  ·  [ News ]  ·  [ Documentations ]  
[ Home ]

[ Documentations ]

Coffee Machine Alert


This step must add a manual generator using by the coffee machine to alert when a lake of coffee, chocolat or tea occurs. These generators will be link on a mail receiver to alert the human supervisor. We add three generators, a generator for each possible alert. Each generator will be a manual alert and will be identify by a name "CoffeeAlert", "ChocolatAlert" and "TeaAlert". We can send an alert with these command :

SetManualEvent.exe CoffeeAlert
SetManualEvent.exe ChocolatAlert
SetManualEvent.exe TeaAlert
Follow these steps :
  1. Open the file LeCouteauSuisse.exe.config and add these generators :
    <service name="CoffeeSupplyChain">
    	<generators>
    		<generator name="MachineAlertCoffee" type="LeCouteauSuisse.Components.ManualGenerator, LeCouteauSuisseComponents, 
    			Version=1.0.0.2, Culture=neutral, PublicKeyToken=8d1037c5df6d5bd0">
    			<settings>
    				<setting key="identifier" value="CoffeeAlert"/>
    				<setting key="data" value="Coffee"/>
    			</settings>
    		</generator>
    		<generator name="MachineAlertChocolat" type="LeCouteauSuisse.Components.ManualGenerator, LeCouteauSuisseComponents, 
    			Version=1.0.0.2, Culture=neutral, PublicKeyToken=8d1037c5df6d5bd0">
    			<settings>
    				<setting key="identifier" value="ChocolatAlert"/>
    				<setting key="data" value="Chocolat"/>
    			</settings>
    		</generator>
    		<generator name="MachineAlertTea" type="LeCouteauSuisse.Components.ManualGenerator, LeCouteauSuisseComponents, 
    			Version=1.0.0.2, Culture=neutral, PublicKeyToken=8d1037c5df6d5bd0">
    			<settings>
    				<setting key="identifier" value="TeaAlert"/>
    				<setting key="data" value="Tea"/>
    			</settings>
    		</generator>
    	</generators>
    </service>
    


LeCouteauSuisse