internal virtual StartServerResponse StartServer(StartServerRequest request) { var marshaller = StartServerRequestMarshaller.Instance; var unmarshaller = StartServerResponseUnmarshaller.Instance; return(Invoke <StartServerRequest, StartServerResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the StartServer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartServer operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/StartServer">REST API Reference for StartServer Operation</seealso> public virtual Task <StartServerResponse> StartServerAsync(StartServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = StartServerRequestMarshaller.Instance; var unmarshaller = StartServerResponseUnmarshaller.Instance; return(InvokeAsync <StartServerRequest, StartServerResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the StartServer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartServer operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/StartServer">REST API Reference for StartServer Operation</seealso> public virtual Task <StartServerResponse> StartServerAsync(StartServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartServerRequestMarshaller.Instance; options.ResponseUnmarshaller = StartServerResponseUnmarshaller.Instance; return(InvokeAsync <StartServerResponse>(request, options, cancellationToken)); }
internal virtual StartServerResponse StartServer(StartServerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartServerRequestMarshaller.Instance; options.ResponseUnmarshaller = StartServerResponseUnmarshaller.Instance; return(Invoke <StartServerResponse>(request, options)); }
public StartServerResponse StartServer(string serverId, string url, float minDelay, float maxDelay) { var request = new StartServerRequest { ServerId = serverId, URL = url, MinDelay = minDelay, MaxDelay = maxDelay }; return(client.startServer(request)); }
/// <summary> /// Starts the SE server with the given configuration name. /// </summary> /// <param name="request"></param> /// <remarks>Should not be called if a server is already running for this instance of SESE.</remarks> public StartServerResponse StartServer(StartServerRequest request) { ApplicationLog.BaseLog.Info("Received request to start server via WCF"); if (Program.ServerExtenderForm != null && Program.ServerExtenderForm.Visible) { ApplicationLog.BaseLog.Info("Ignoring WCF StartServer request because GUI is active."); //If the local GUI is running, indicate failure for that reason. return(new StartServerResponse { ExtenderVersion = Assembly.GetExecutingAssembly( ).GetName( ).Version, ProtocolVersion = ProtocolVersion, Status = "Not supported while GUI visible on server.", StatusCode = 500 }); } if (Program.Server != null) { Program.Server.InstanceName = request.ConfigurationName; SandboxGameAssemblyWrapper.Instance.InitMyFileSystem(request.ConfigurationName); Program.Server.LoadServerConfig( ); Program.Server.SaveServerConfig( ); if (Program.Server.Config != null) { Program.Server.StartServer( ); return(new StartServerResponse { StatusCode = 200, Status = "OK", ExtenderVersion = Assembly.GetExecutingAssembly( ).GetName( ).Version, ProtocolVersion = ProtocolVersion }); } else { ApplicationLog.BaseLog.Error("Unable to start server. Config null."); } } else { ApplicationLog.BaseLog.Error("Unable to start server. Server null."); } return(new StartServerResponse { ExtenderVersion = Assembly.GetExecutingAssembly( ).GetName( ).Version, ProtocolVersion = ProtocolVersion, Status = "Unknown error attempting to start server.", StatusCode = 500 }); }
public override Task <StartServerResponse> startServer(StartServerRequest request, ServerCallContext context) { var partitions = new List <Partition>(); foreach (var p in request.Partitions) { partitions.Add(new Partition { id = p.Id, masterUrl = p.MasterURL }); } ProcessCreation.StartServer(request.ServerId, request.URL, request.MinDelay, request.MaxDelay, partitions); return(Task.FromResult(new StartServerResponse())); }
public bool HandleStartServer(StartServerRequest request) { if (netServer.IsRunning) { return(true); } var started = netServer.Start(gameSettings.ServerPort); if (started) { Console.WriteLine("Server listening at port {0}", gameSettings.ServerPort); } else { Console.WriteLine("Server not started!"); } return(started); }
public StartServerResponse StartServer(StartServerRequest request) { return(Channel.StartServer(request)); }