예제 #1
0
        public async Task <MessageOutputBase> StartFollowing([FromBody] StartFollowingRequest request)
        {
            MessageOutputBase result = null;

            request.UserName = GetCurrentUser();

            await Execute(flow =>
            {
                flow.StartRegisterFlow()
                .Add <CheckUserExistsStep>()
                .Add <StartFollowingStep>();

                flow.
                When <UserNotFoundStep, UserNotFoundParams>(notFound =>
                {
                    result = notFound.Response;
                })
                .When <StartFollowingStep, StartFollowingParams>(start =>
                {
                    result = start.Response;
                });
            }, request,
                          error =>
            {
                result = error;
            });

            return(result);
        }
예제 #2
0
 public override void StartFollowing(Google.ProtocolBuffers.IRpcController controller, StartFollowingRequest request, Action <StartFollowingResponse> done)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public override void StartFollowing(IRpcController controller, StartFollowingRequest request, Action <StartFollowingResponse> done)
 {
     ProtoOutputBuffer.Write(request.GetType(), request.ToString());
 }
예제 #4
0
 public override void StartFollowing(IRpcController controller, StartFollowingRequest request, Action<StartFollowingResponse> done)
 {
     ProtoOutputBuffer.Write(request.GetType(), request.ToString());
 }
예제 #5
0
		public override void StartFollowing(Google.ProtocolBuffers.IRpcController controller, StartFollowingRequest request, Action<StartFollowingResponse> done) {
			throw new NotImplementedException();
		}