示例#1
0
        public Task <int> ProcessInt(int v)
        {
            _trace.RegisterServiceInvocation(typeof(ISerDeserService), nameof(ProcessInt), v);

            //adds to make sure that server's value was actually seen by client
            return(Task.FromResult(v + MagicsForTests.Serialization.Int.ServerAdd));
        }
示例#2
0
        public Task <Unit> Publish(SomeNotif inp)
        {
            _trace.RegisterServiceInvocation(typeof(IServerSentEventsService), nameof(Publish), inp);

            _subs.SendMessage(inp);
            return(Task.FromResult(Unit.Instance));
        }
示例#3
0
        public Task <string> SayHello(string toWhom)
        {
            _trace.RegisterServiceInvocation(typeof(IHelloWorldService), nameof(SayHello), toWhom);

            return(Task.FromResult($"Hello {toWhom}. How are you?"));
        }