C# Class Dev2.Runtime.InterfaceImplementors.DynamicServicesInvoker

Author: Sameer Chunilall Date: 2010-01-24 Description: Responsible for the invocation of a Dynamic Service and/or bizrule The invocation of the service is not internal to any dynamic service object as the service is a singleton and we want every service request to be executed in insolation of other as we are working in a static and multi-threaded environment
Inheritance: IDynamicServicesInvoker, IDisposable
ファイルを表示 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
AddResource ( string resourceDefinition, string roles ) : string
BizRule ( ServiceAction sa, dynamic xmlRequest, System.Guid dataListID ) : dynamic
CallProcedure ( string serverName, string databaseName, string procedure, string parameters, string mode, string username, string password ) : string
CheckCredentials ( string domain, string username, string password ) : string
CheckPermissions ( string path, string username, string password ) : string
CompileResource ( string resourceDefinition ) : string
DeleteResource ( string resourceName, string type, string roles ) : string
DeployResource ( string resourceDefinition, string roles ) : string
Dispose ( ) : void
DynamicService ( ServiceAction sa, System.Guid dataListID ) : System.Guid

Invoke a Dynamic Service

DynamicServicesInvoker ( ) : System.Xml.XPath
DynamicServicesInvoker ( IFrameworkDataChannel dsfChannel, IFrameworkDuplexDataChannel managementChannel = null, bool loggingEnabled = false, IWorkspace workspace = null ) : System.Xml.XPath
FindDependencies ( string resourceName ) : string
FindDependenciesRecursive ( string resourceName ) : string
FindDirectory ( string directoryPath, string domain, string username, string password ) : string
FindDrive ( string domain, string username, string password ) : string
FindMachineName ( ) : string
FindNetworkComputers ( ) : string
FindResource ( string resourceName, string type, string roles ) : string
FindResourceForBinding ( string resourceName, string type, string roles ) : string
FindResources ( string resourceName, string type, string roles ) : string
FindResourcesByID ( string guidCsv, string type ) : string
FindServerUsername ( ) : string
FindSourcesByType ( string type ) : string
FindSqlDatabaseSchema ( string serverName, string databaseName, string username, string password ) : string
FindSqlDatabases ( string serverName, string username, string password ) : string
FindSupportedDatabaseServers ( ) : string
GetLatest ( string editedItemsXml ) : string
GetResource ( string resourceName, string resourceType, string roles ) : string
GetXElement ( string xmlRequest ) : dynamic

A utility method to create an Unlimited Object from an xml string

InterrogatePlugin ( string assemblyLocation, string assemblyName, string method, string args ) : string
Invoke ( DynamicService service, dynamic xmlRequest, System.Guid dataListId, ErrorResultTO &errors ) : System.Guid
Invoke ( IDynamicServicesHost resourceDirectory, dynamic xmlRequest, System.Guid dataListId, ErrorResultTO &errors ) : System.Guid

Responsible for the processing of all inbound requests This method is reentrant and will call itself to for every invocation required in every generation of nesting. e.g services made up of services

Invoke ( ServiceAction serviceAction, IDSFDataObject dataObj, string dataList ) : System.Guid
InvokeService ( string name, string action, string args ) : string
ManagementDynamicService ( ServiceAction serviceAction, IDSFDataObject xmlRequest ) : System.Guid

Invoke a management method which is a statically coded method in the service implementation for service engine administrators

MySqlDatabase ( ServiceAction serviceAction, dynamic xmlRequest ) : dynamic
PingTest ( ) : string

Simple ping test that returns the date the message was processed back to the caller

Plugin ( ServiceAction plugin, IDSFDataObject req ) : System.Guid

Invokes a plugin assembly

Plugin ( ServiceAction plugin, IDSFDataObject req, bool formatOutput ) : System.Guid

Invokes a plugin assembly

PluginMetaDataRegistry ( string asmLoc, string nameSpace, string protectionLevel, string methodName ) : string
RegisteredAssembly ( ) : string
ReloadResource ( string resourceName, string resourceType ) : string

This is a management method that allows administrative users to realod a specific service

ReloadServices ( ) : string

This is a management method and allows administrative users to reload services. This will be called when service definitions have been ammended and need to become live

SetDynamicServiceMode ( string xmlRequest ) : string
SqlDatabaseCommand ( ServiceAction serviceAction, IDSFDataObject req ) : dynamic
Switch ( ServiceAction serviceAction, dynamic xmlRequest, System.Guid dataListID ) : dynamic
UpdateWorkspaceItem ( string itemXml, string roles ) : string
WebService ( ServiceAction service, dynamic xmlRequest ) : dynamic

Invokes a web service

Workflow ( ServiceAction workflowAction, dynamic xmlRequest, int i ) : dynamic
WorkflowApplication ( ServiceAction action, IDSFDataObject dataObj, string dataList ) : dynamic

Private Methods

Method Description
AddErrorsToDataList ( ErrorResultTO errors, System.Guid dataListID ) : void
BuildMethodSignature ( ParameterInfo args, string methodName ) : string
CreateSqlCommand ( SqlConnection connection, ServiceAction serviceAction ) : SqlCommand
DispatchDebugState ( dynamic xmlRequest, System.Guid dataListId, ErrorResultTO allErrors ) : void

Dispatches the error state to the client

Eval ( string sExpression ) : object

Evaluates a string of C# code and returns the result.

GetAllDefsAsXML ( string source, dynamic serviceData ) : string
GetDirectoryInfoAsJSON ( DirectoryInfo directory ) : string
GetDriveInfoAsJSON ( DriveInfo drives ) : string

Gets the drive info as JSON.

GetOutputFormatterFromServiceAction ( ServiceAction serviceAction ) : IOutputFormatter
GetResourceNameAsXml ( string source, dynamic serviceData ) : string
GetSourceResourceAsXml ( string source, dynamic serviceData ) : string
GetWorkerServiceResourceAsXml ( string source, dynamic serviceData ) : string
GetXmlDataFromSqlServiceAction ( ServiceAction serviceAction ) : string
InterogatePluginAssembly ( StringBuilder pluginData, Assembly asm, string shortName, string sourceLocation, bool includePublic, bool includePrivate, string methodName, string nameSpace ) : void
LogonUser ( string lpszUsername, string lpszDomain, string lpszPassword, int dwLogonType, int dwLogonProvider, IntPtr &phToken ) : bool

Method Details

AddResource() public method

public AddResource ( string resourceDefinition, string roles ) : string
resourceDefinition string
roles string
return string

BizRule() public method

public BizRule ( ServiceAction sa, dynamic xmlRequest, System.Guid dataListID ) : dynamic
sa ServiceAction
xmlRequest dynamic
dataListID System.Guid
return dynamic

CallProcedure() public method

public CallProcedure ( string serverName, string databaseName, string procedure, string parameters, string mode, string username, string password ) : string
serverName string
databaseName string
procedure string
parameters string
mode string
username string
password string
return string

CheckCredentials() public method

public CheckCredentials ( string domain, string username, string password ) : string
domain string
username string
password string
return string

CheckPermissions() public method

public CheckPermissions ( string path, string username, string password ) : string
path string
username string
password string
return string

CompileResource() public method

public CompileResource ( string resourceDefinition ) : string
resourceDefinition string
return string

DeleteResource() public method

public DeleteResource ( string resourceName, string type, string roles ) : string
resourceName string
type string
roles string
return string

DeployResource() public method

public DeployResource ( string resourceDefinition, string roles ) : string
resourceDefinition string
roles string
return string

Dispose() public method

public Dispose ( ) : void
return void

DynamicService() public method

Invoke a Dynamic Service
public DynamicService ( ServiceAction sa, System.Guid dataListID ) : System.Guid
sa ServiceAction The action of type InvokeDynamicService
dataListID System.Guid The data list ID.
return System.Guid

DynamicServicesInvoker() public method

public DynamicServicesInvoker ( ) : System.Xml.XPath
return System.Xml.XPath

DynamicServicesInvoker() public method

public DynamicServicesInvoker ( IFrameworkDataChannel dsfChannel, IFrameworkDuplexDataChannel managementChannel = null, bool loggingEnabled = false, IWorkspace workspace = null ) : System.Xml.XPath
dsfChannel IFrameworkDataChannel
managementChannel IFrameworkDuplexDataChannel
loggingEnabled bool
workspace IWorkspace
return System.Xml.XPath

FindDependencies() public method

public FindDependencies ( string resourceName ) : string
resourceName string
return string

FindDependenciesRecursive() public method

public FindDependenciesRecursive ( string resourceName ) : string
resourceName string
return string

FindDirectory() public method

public FindDirectory ( string directoryPath, string domain, string username, string password ) : string
directoryPath string
domain string
username string
password string
return string

FindDrive() public method

public FindDrive ( string domain, string username, string password ) : string
domain string
username string
password string
return string

FindMachineName() public method

public FindMachineName ( ) : string
return string

FindNetworkComputers() public method

public FindNetworkComputers ( ) : string
return string

FindResource() public method

public FindResource ( string resourceName, string type, string roles ) : string
resourceName string
type string
roles string
return string

FindResourceForBinding() public method

public FindResourceForBinding ( string resourceName, string type, string roles ) : string
resourceName string
type string
roles string
return string

FindResources() public method

public FindResources ( string resourceName, string type, string roles ) : string
resourceName string
type string
roles string
return string

FindResourcesByID() public method

public FindResourcesByID ( string guidCsv, string type ) : string
guidCsv string
type string
return string

FindServerUsername() public method

public FindServerUsername ( ) : string
return string

FindSourcesByType() public method

public FindSourcesByType ( string type ) : string
type string
return string

FindSqlDatabaseSchema() public method

public FindSqlDatabaseSchema ( string serverName, string databaseName, string username, string password ) : string
serverName string
databaseName string
username string
password string
return string

FindSqlDatabases() public method

public FindSqlDatabases ( string serverName, string username, string password ) : string
serverName string
username string
password string
return string

FindSupportedDatabaseServers() public method

public FindSupportedDatabaseServers ( ) : string
return string

GetLatest() public method

public GetLatest ( string editedItemsXml ) : string
editedItemsXml string
return string

GetResource() public method

public GetResource ( string resourceName, string resourceType, string roles ) : string
resourceName string
resourceType string
roles string
return string

GetXElement() public method

A utility method to create an Unlimited Object from an xml string
public GetXElement ( string xmlRequest ) : dynamic
xmlRequest string The XML request.
return dynamic

InterrogatePlugin() public method

public InterrogatePlugin ( string assemblyLocation, string assemblyName, string method, string args ) : string
assemblyLocation string
assemblyName string
method string
args string
return string

Invoke() public method

public Invoke ( DynamicService service, dynamic xmlRequest, System.Guid dataListId, ErrorResultTO &errors ) : System.Guid
service Dev2.DynamicServices.DynamicService
xmlRequest dynamic
dataListId System.Guid
errors Dev2.DataList.Contract.ErrorResultTO
return System.Guid

Invoke() public method

Responsible for the processing of all inbound requests This method is reentrant and will call itself to for every invocation required in every generation of nesting. e.g services made up of services
public Invoke ( IDynamicServicesHost resourceDirectory, dynamic xmlRequest, System.Guid dataListId, ErrorResultTO &errors ) : System.Guid
resourceDirectory IDynamicServicesHost The singleton instance of the service library that contains all the logical services
xmlRequest dynamic The actual client request message
dataListId System.Guid The id of the data list
errors Dev2.DataList.Contract.ErrorResultTO Errors resulting from this invoke
return System.Guid

Invoke() public method

public Invoke ( ServiceAction serviceAction, IDSFDataObject dataObj, string dataList ) : System.Guid
serviceAction ServiceAction
dataObj IDSFDataObject
dataList string
return System.Guid

InvokeService() public method

public InvokeService ( string name, string action, string args ) : string
name string
action string
args string
return string

ManagementDynamicService() public method

Invoke a management method which is a statically coded method in the service implementation for service engine administrators
public ManagementDynamicService ( ServiceAction serviceAction, IDSFDataObject xmlRequest ) : System.Guid
serviceAction ServiceAction Action of type InvokeManagementDynamicService
xmlRequest IDSFDataObject The XML request.
return System.Guid

MySqlDatabase() public method

public MySqlDatabase ( ServiceAction serviceAction, dynamic xmlRequest ) : dynamic
serviceAction ServiceAction
xmlRequest dynamic
return dynamic

PingTest() public method

Simple ping test that returns the date the message was processed back to the caller
public PingTest ( ) : string
return string

Plugin() public method

Invokes a plugin assembly
public Plugin ( ServiceAction plugin, IDSFDataObject req ) : System.Guid
plugin ServiceAction The action of type Plugin
req IDSFDataObject The req.
return System.Guid

Plugin() public method

Invokes a plugin assembly
public Plugin ( ServiceAction plugin, IDSFDataObject req, bool formatOutput ) : System.Guid
plugin ServiceAction The action of type Plugin
req IDSFDataObject The req.
formatOutput bool Indicates if the output of the plugin should be run through the formatter
return System.Guid

PluginMetaDataRegistry() public method

public PluginMetaDataRegistry ( string asmLoc, string nameSpace, string protectionLevel, string methodName ) : string
asmLoc string
nameSpace string
protectionLevel string
methodName string
return string

RegisteredAssembly() public method

public RegisteredAssembly ( ) : string
return string

ReloadResource() public method

This is a management method that allows administrative users to realod a specific service
public ReloadResource ( string resourceName, string resourceType ) : string
resourceName string Name of the resource.
resourceType string Type of the resource.
return string

ReloadServices() public method

This is a management method and allows administrative users to reload services. This will be called when service definitions have been ammended and need to become live
public ReloadServices ( ) : string
return string

SetDynamicServiceMode() public method

public SetDynamicServiceMode ( string xmlRequest ) : string
xmlRequest string
return string

SqlDatabaseCommand() public method

public SqlDatabaseCommand ( ServiceAction serviceAction, IDSFDataObject req ) : dynamic
serviceAction ServiceAction
req IDSFDataObject
return dynamic

Switch() public method

public Switch ( ServiceAction serviceAction, dynamic xmlRequest, System.Guid dataListID ) : dynamic
serviceAction ServiceAction
xmlRequest dynamic
dataListID System.Guid
return dynamic

UpdateWorkspaceItem() public method

public UpdateWorkspaceItem ( string itemXml, string roles ) : string
itemXml string
roles string
return string

WebService() public method

Invokes a web service
public WebService ( ServiceAction service, dynamic xmlRequest ) : dynamic
service ServiceAction The action of type InvokeWebService
xmlRequest dynamic The XML request.
return dynamic

Workflow() public method

public Workflow ( ServiceAction workflowAction, dynamic xmlRequest, int i ) : dynamic
workflowAction ServiceAction
xmlRequest dynamic
i int
return dynamic

WorkflowApplication() public method

public WorkflowApplication ( ServiceAction action, IDSFDataObject dataObj, string dataList ) : dynamic
action ServiceAction
dataObj IDSFDataObject
dataList string
return dynamic