Windows Server AppFabric / Workflow Services Demo - Contoso HR

This sample demonstrates how you can use a Windows Workflow Foundation (WF4) Workflow Service and Windows Server AppFabric to construct a long running business process.

C# (6.3 MB)
 
 
 
 
 
4.9 Star
(8)
6,153 times
Add to favorites
12/3/2011
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
function CheckServerExtensions($ApplicationServerExtensions)
{
    $found = $FALSE;
 
    if (test-path $ApplicationServerExtensions )
    {
        $entryProperties = Get-ItemProperty -path $ApplicationServerExtensions
 
        if(($entryProperties.Worker -eq 1) -and ($entryProperties.WorkerAdmin -eq 1) -and ($entryProperties.DCC -eq 1))
        { 
            $found = $TRUE;
        }
    }
 
   $found;
}
 
function SearchAllServerExtensions()
{
    #32 bits
    $found =  CheckServerExtensions -ApplicationServerExtensions 'HKLM:SOFTWARE\Microsoft\AppFabric\v1.0\Features\';   
    if($found) {return $found;}
   
    #Wow folder, 64 bits
    $found =  CheckServerExtensions -ApplicationServerExtensions 'HKLM:SOFTWARE\Wow6432Node\Microsoft\AppFabric\v1.0\Features\';   
     
    return $found;
}
 
SearchAllServerExtensions