CodeKeep C# Feed Luglio 3rd, 2008
Description: Business Unit Template
Link:
http://www.codekeep.net/snippets/00fcc2ed-b0bd-4bf2-9a28-5e30642f22d0.aspx public class MyBusinesUnit : BusinessUnit
{
/// <summary>
/// Performs the Business Unit functions.
/// </summary>
public void PerformAction()
{
//TODO: Peform work and may return a result
StatusCode = StatusCodes.Success;
StatusCodeText = string.Empty;
}
}
CodeKeep C# Feed Luglio 3rd, 2008
Description: Sorenson Communications Tuxedo Framework Service definition template for use in the DataAccess, Relay and Configuration Server libraries.
Link:
http://www.codekeep.net/snippets/db034213-82be-4d2f-8a69-3553b516caf1.aspx /// <summary>
/// Summary description for Service
/// </summary>
public class ServiceName : Service
{
internal ServiceName(tttTpSvcInfo svcInfo, tttServer server) :
base(svcInfo, server)
{
}
/// <summary>
/// Description for Service
/// </summary>
public override int ServiceUserFunction()
{
//TODO: Define BusinessUnit here
BusinessUnit bu = null;
//TODO: Call BusinessUnit work methods here
ReturnCode = bu.ReturnCode;
ReturnCodeText = bu.ReturnCodeText;
//
// Set the response data
//
xmlMsgHelper.ClearDataElements();
xmlMsgHelper.ReturnCode = ReturnCode;
xmlMsgHelper.ReturnCodeText = ReturnCodeText;
if (ReturnCode == ReturnCodes.Success)
{
//TODO: Add service response data here.
//example: xmlMsgHelper.AddComplexDataElement(o);
}
SetNewData(xmlMsgHelper.BuildReplyDataMsg(serviceName));
return ReturnCodes.Success;
}
}
CodeKeep C# Feed Luglio 3rd, 2008
Description: Bool GET/SET
Link:
http://www.codekeep.net/snippets/af4d98af-fbfe-4e6b-8b1e-a90071962671.aspxprivate bool bValue;
public bool ValueBool
{
get
{
return bValue;
}
set
}
bValue = value;
{
}