
ProcessManagerProxy Class
Acts as the client-side proxy for interacting with the server-side process manager.
Namespace: Microsoft.SensorServices.Rfid.Management
Assembly: Microsoft.Rfid.ManagementWebServiceProxies (in microsoft.rfid.managementwebserviceproxies.dll)
Microsoft.SensorServices.Rfid.Management.ProxyBase
Microsoft.SensorServices.Rfid.Management.ProcessManagerProxy
Microsoft.SensorServices.Rfid.Management Namespace
How to Validate, Deploy, and Start a Process
How to Create an RFID Process
Advanced Management Operations Model Class Interactions
Using Web Service Proxies Exposed by BizTalk RFID
Assembly: Microsoft.Rfid.ManagementWebServiceProxies (in microsoft.rfid.managementwebserviceproxies.dll)
Syntax
Remarks
ProcessManagerProxy provides interfaces to create RFID processes and to control the processes’ life cycle
Inheritance Hierarchy
System.ObjectMicrosoft.SensorServices.Rfid.Management.ProxyBase
Microsoft.SensorServices.Rfid.Management.ProcessManagerProxy
Example
The following code uses ProcessManagerProxy as part of a procedure to add a process to BizTalk RFID. For the complete walkthrough, see Step 2: Adding a Process, a Device, and a Device Provider to BizTalk RFID.
ProcessManagerProxy pmp = new ProcessManagerProxy();
Console.WriteLine("Creating a process: " + processName);
RfidProcess process = new RfidProcess();
process.Name = processName;
LogicalDevice mylogicaldevice = new LogicalDevice("shippingreader", "my logical device");
process.LogicalSource.LogicalDeviceList.Add(mylogicaldevice);
//get OOb assembly name and class names
Type t1 = typeof(SqlServerSink);
string oobAsmName = t1.Assembly.FullName;
string sqlSinkClsName = t1.FullName;
Type t2 = typeof(RuleEnginePolicyExecutor);
string breClsName = t2.FullName;
//add devent handlers to the process
EventHandlerDefinition breEHD = new EventHandlerDefinition("MyBREInst", oobAsmName, breClsName);
process.LogicalSource.ComponentList.Add(breEHD);
EventHandlerDefinition myEHD = new EventHandlerDefinition("ASNEventHandler", "MyEventHandler", "MyEventHandler.MyEventHandler");
process.LogicalSource.ComponentList.Add(myEHD);
EventHandlerDefinition sqlSinkEHD = new EventHandlerDefinition("MySqlSink", oobAsmName, sqlSinkClsName);
process.LogicalSource.ComponentList.Add(sqlSinkEHD);
string appbaseProcess = pmp.GetAppBaseForProcess(processName);
File.Copy(@"C:\RFIDTutorial\MyEventHandler\bin\Debug\MyEventHandler.dll", appbaseProcess + "\\bin\\MyEventHandler.dll", true);
Console.WriteLine("Copied the custom event handler MyEventHandler binary to its process app base\\bin directory");
pmp.SaveProcess(process);
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.Platforms
Development Platforms
Windows Small Business Server 2003 with SP2; The 32-bit and 64-bit editions of Windows Server 2003 R2 (except the Web Editions); The 32-bit and 64-bit editions of Windows Server 2003 SP2 (except the Web Edition); The 32-bit and 64-bit editions of Windows Server 2008 (except the Web Server Editions); The 32-bit and 64-bit editions of Windows Vista Ultimate, Enterprise and Business editions with Service Pack 1; The 32-bit and 64-bit editions of Windows XP Professional with Service Pack 3Target Platforms
Windows Small Business Server 2003 with SP2; The 32-bit and 64-bit editions of Windows Server 2003 R2 (except the Web Editions); The 32-bit and 64-bit editions of Windows Server 2003 SP2 (except the Web Edition); The 32-bit and 64-bit editions of Windows Server 2008 (except the Web Server Editions); The 32-bit and 64-bit editions of Windows Vista Ultimate, Enterprise and Business editions with Service Pack 1; The 32-bit and 64-bit editions of Windows XP Professional with Service Pack 3
See Also
Reference
ProcessManagerProxy MembersMicrosoft.SensorServices.Rfid.Management Namespace
Other Resources
Setting a Logger for Proxy ClassesHow to Validate, Deploy, and Start a Process
How to Create an RFID Process
Advanced Management Operations Model Class Interactions
Using Web Service Proxies Exposed by BizTalk RFID
