|
/***********************/
/* (c) Alexandru Lungu */
/* Challenge is Life! */
/* www.challenge-me.ws */
/***********************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Challenge.Common;
using System.Security.Permissions;
namespace Challenge.Server
{
public class ExampleService : IExampleService
{
ServerInfo info = new ServerInfo();
public ExampleService()
{
}
public ServerInfo GetServerInfo()
{
return info;
}
[PrincipalPermission(SecurityAction.Demand, Role = "Admin")]
public int Sum(int a, int b)
{
return a + b;
}
public string MultiplyText(string text, int no)
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < no; i++)
{
sb.Append(text);
}
return sb.ToString();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.