using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Security.Permissions;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace MembershipWS
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "MultiplyService" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select MultiplyService.svc or MultiplyService.svc.cs at the Solution Explorer and start debugging.
    public class MultiplyService : IMultiplyService
    {
        [PrincipalPermission(SecurityAction.Demand, Name="pawel")]
        public string Multiply(int x, int y)
        {
            var z = OperationContext.Current;
            return string.Format("The result: {0}", x*y);
        }
    }
}
