コード例 #1
0
    /// <summary>
    /// Uses the coordinator to validate and attempt the interaction on the server side.
    /// </summary>
    /// <param name="info"></param>
    /// <param name="coordinator"></param>
    /// <typeparam name="T">type of interaction</typeparam>
    /// <returns>If validation succeeds and
    /// coordinator performs server side interaction, returns
    /// STOP_PROCESSING. Otherwise returns CONTINUE_PROCESSING.</returns>
    public static bool ServerProcessCoordinatedInteraction <T>(T info, InteractionCoordinator <T> coordinator)
        where T : Interaction
    {
        if (coordinator.ServerValidateAndPerform(info))
        {
            return(true);
        }

        return(false);
    }
コード例 #2
0
 public InteractionResult ServerProcessInteraction(T5 info)
 {
     return(coordinator.ServerValidateAndPerform(info));
 }