本文整理汇总了C#中Dev2.DynamicServices.Objects.ServiceAction类的典型用法代码示例。如果您正苦于以下问题:C# ServiceAction类的具体用法?C# ServiceAction怎么用?C# ServiceAction使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ServiceAction类属于Dev2.DynamicServices.Objects命名空间,在下文中一共展示了ServiceAction类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateServiceEntry
public DynamicService CreateServiceEntry()
{
DynamicService newDs = new DynamicService { Name = HandlesType(), DataListSpecification = new StringBuilder("<DataList><OldCategory ColumnIODirection=\"Input\"/><NewCategory ColumnIODirection=\"Input\"/><ResourceType ColumnIODirection=\"Input\"/><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>") };
ServiceAction sa = new ServiceAction { Name = HandlesType(), ActionType = enActionType.InvokeManagementDynamicService, SourceMethod = HandlesType() };
newDs.Actions.Add(sa);
return newDs;
}
示例2: RemoteWorkflowExecutionContainer_UnitTest_ConstructorWithNullResourceCatalog_ArgumentNullException
public void RemoteWorkflowExecutionContainer_UnitTest_ConstructorWithNullResourceCatalog_ArgumentNullException()
{
var sa = new ServiceAction();
var dataObj = new Mock<IDSFDataObject>();
var workspace = new Mock<IWorkspace>();
var esbChannel = new Mock<IEsbChannel>();
new RemoteWorkflowExecutionContainerMock(sa, dataObj.Object, workspace.Object, esbChannel.Object, null);
}
示例3: CreateServiceEntry
public DynamicService CreateServiceEntry()
{
var findResourcesByIdAction = new ServiceAction { Name = HandlesType(), SourceMethod = HandlesType(), ActionType = enActionType.InvokeManagementDynamicService };
var findResourcesByIdService = new DynamicService { Name = HandlesType(), DataListSpecification = new StringBuilder("<DataList><GuidCsv ColumnIODirection=\"Input\"/><ResourceType ColumnIODirection=\"Input\"/><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>") };
findResourcesByIdService.Actions.Add(findResourcesByIdAction);
return findResourcesByIdService;
}
示例4: EsbExecutionContainer
protected EsbExecutionContainer(ServiceAction sa, IDSFDataObject dataObject, IWorkspace theWorkspace, IEsbChannel esbChannel, EsbExecuteRequest request)
{
ServiceAction = sa;
DataObject = dataObject;
TheWorkspace = theWorkspace;
EsbChannel = esbChannel;
Request = request;
DataObject.EsbChannel = EsbChannel;
}
示例5: CreateServiceEntry
public DynamicService CreateServiceEntry()
{
var getLatestAction = new ServiceAction { Name = HandlesType(), ActionType = enActionType.InvokeManagementDynamicService, SourceMethod = HandlesType() };
var getLatestService = new DynamicService { Name = HandlesType(), DataListSpecification = new StringBuilder("<DataList><EditedItemsXml ColumnIODirection=\"Input\"/><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>") };
getLatestService.Actions.Add(getLatestAction);
return getLatestService;
}
示例6: RemoteWorkflowExecutionContainer
public RemoteWorkflowExecutionContainer(ServiceAction sa, IDSFDataObject dataObj, IWorkspace workspace, IEsbChannel esbChannel, IResourceCatalog resourceCatalog)
: base(sa, dataObj, workspace, esbChannel)
{
if (resourceCatalog == null)
{
throw new ArgumentNullException("resourceCatalog");
}
_resourceCatalog = resourceCatalog;
}
示例7: CreateServiceEntry
public DynamicService CreateServiceEntry()
{
DynamicService deployResourceDynamicService = new DynamicService { Name = HandlesType(), DataListSpecification = new StringBuilder("<DataList><ResourceDefinition ColumnIODirection=\"Input\"/><Roles ColumnIODirection=\"Input\"/><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>") };
ServiceAction deployResourceServiceAction = new ServiceAction { Name = HandlesType(), ActionType = enActionType.InvokeManagementDynamicService, SourceMethod = HandlesType() };
deployResourceDynamicService.Actions.Add(deployResourceServiceAction);
return deployResourceDynamicService;
}
示例8: CreateServiceEntry
public DynamicService CreateServiceEntry()
{
DynamicService findNetworkComputersService = new DynamicService { Name = HandlesType(), DataListSpecification = new StringBuilder("<DataList><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>") };
ServiceAction findNetworkComputersAction = new ServiceAction { Name = HandlesType(), ActionType = enActionType.InvokeManagementDynamicService, SourceMethod = HandlesType() };
findNetworkComputersService.Actions.Add(findNetworkComputersAction);
return findNetworkComputersService;
}
示例9: CreateServiceEntry
public DynamicService CreateServiceEntry()
{
DynamicService getScheduledResourcesService = new DynamicService { Name = HandlesType(), DataListSpecification = new StringBuilder("<DataList></DataList>") };
ServiceAction getScheduledResourcesAction = new ServiceAction { Name = HandlesType(), ActionType = enActionType.InvokeManagementDynamicService, SourceName = HandlesType(), SourceMethod = HandlesType() };
getScheduledResourcesService.Actions.Add(getScheduledResourcesAction);
return getScheduledResourcesService;
}
示例10: CreateServiceEntry
public DynamicService CreateServiceEntry()
{
var findServices = new DynamicService { Name = HandlesType(), DataListSpecification = new StringBuilder("<DataList><itemToAdd ColumnIODirection=\"Input\"/><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>") };
var fetchItemsAction = new ServiceAction { Name = HandlesType(), ActionType = enActionType.InvokeManagementDynamicService, SourceMethod = HandlesType() };
findServices.Actions.Add(fetchItemsAction);
return findServices;
}
示例11: CreateServiceEntry
public DynamicService CreateServiceEntry()
{
DynamicService ds = new DynamicService {Name = HandlesType()};
ServiceAction action = new ServiceAction
{
Name = HandlesType(),
SourceMethod = HandlesType(),
ActionType = enActionType.InvokeManagementDynamicService,
DataListSpecification = new StringBuilder("<DataList><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>")
};
ds.Actions.Add(action);
return ds;
}
示例12: CreateServiceEntry
public DynamicService CreateServiceEntry()
{
var dynamicService = new DynamicService
{
Name = HandlesType(),
DataListSpecification = new StringBuilder("<DataList><LoggingSettings ColumnIODirection=\"Input\"></LoggingSettings><Result/><Dev2System.ManagmentServicePayload ColumnIODirection=\"Both\"></Dev2System.ManagmentServicePayload></DataList>")
};
var serviceAction = new ServiceAction
{
Name = HandlesType(),
ActionType = enActionType.InvokeManagementDynamicService,
SourceMethod = HandlesType()
};
dynamicService.Actions.Add(serviceAction);
return dynamicService;
}
示例13: InternalServiceContainer
public InternalServiceContainer(ServiceAction sa, IDSFDataObject dataObj, IWorkspace theWorkspace, IEsbChannel esbChannel, EsbExecuteRequest request)
: base(sa, dataObj, theWorkspace, esbChannel, request)
{
var dataListTO = new DataListTO(sa.DataListSpecification.ToString());
if(request.Args == null)
{
request.Args = new Dictionary<string, StringBuilder>();
foreach(var input in dataListTO.Inputs)
{
var warewolfEvalResult = dataObj.Environment.Eval(DataListUtil.AddBracketsToValueIfNotExist(input),0,false);
if(warewolfEvalResult.IsWarewolfAtomResult)
{
var scalarResult = warewolfEvalResult as WarewolfDataEvaluationCommon.WarewolfEvalResult.WarewolfAtomResult;
if(scalarResult != null && !scalarResult.Item.IsNothing)
{
request.Args.Add(input, new StringBuilder(scalarResult.Item.ToString()));
}
}
}
}
}
示例14: DatabaseServiceContainer
public DatabaseServiceContainer(ServiceAction sa, IDSFDataObject dataObj, IWorkspace workspace, IEsbChannel esbChannel)
: base(sa, dataObj, workspace, esbChannel)
{
_databaseServiceExecution = new DatabaseServiceExecution(dataObj);
}
示例15: CreateExecutionContainer
static RemoteWorkflowExecutionContainerMock CreateExecutionContainer(IResourceCatalog resourceCatalog, string dataListShape = "<DataList></DataList>", string dataListData = "")
{
var dataObj = new Mock<IDSFDataObject>();
dataObj.Setup(d => d.EnvironmentID).Returns(_connection.ResourceID);
dataObj.Setup(d => d.ServiceName).Returns("Test");
dataObj.Setup(d => d.RemoteInvokeResultShape).Returns(new StringBuilder("<ADL><NumericGUID></NumericGUID></ADL>"));
dataObj.Setup(d => d.Environment).Returns(new ExecutionEnvironment());
ExecutionEnvironmentUtils.UpdateEnvironmentFromXmlPayload(dataObj.Object,new StringBuilder(dataListData),dataListShape, 0);
var sa = new ServiceAction();
var workspace = new Mock<IWorkspace>();
var esbChannel = new Mock<IEsbChannel>();
var container = new RemoteWorkflowExecutionContainerMock(sa, dataObj.Object, workspace.Object, esbChannel.Object, resourceCatalog)
{
GetRequestRespsonse = "<DataList><NumericGUID>74272317-2264-4564-3988-700350008298</NumericGUID></DataList>"
};
return container;
}