103 lines
4.4 KiB
C#
103 lines
4.4 KiB
C#
using System.Configuration;
|
|
using System;
|
|
namespace PlutoServer.MSL {
|
|
partial class PlutoService {
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing) {
|
|
if(disposing && (components != null)) {
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Set the Internal Port to use for the internal Channel
|
|
/// </summary>
|
|
/// <param name="Port">Port To use</param>
|
|
private void SetInternalPort(int Port)
|
|
{
|
|
if (Port > 0 && this.MSLTcpServerChannelInternal.Port != Port)
|
|
{
|
|
this.MSLTcpServerChannelInternal.Port = Port;
|
|
this.MSLTcpServerChannelInternal.TcpServer.Port = Port;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Set the External Port to use for the external Channel
|
|
/// </summary>
|
|
/// <param name="Port">Port To use</param>
|
|
private void SetExternalPort(int Port)
|
|
{
|
|
if (Port > 0 && this.MSLTcpServerChannelExternal.Port != Port)
|
|
{
|
|
this.MSLTcpServerChannelExternal.Port = Port;
|
|
this.MSLTcpServerChannelExternal.TcpServer.Port = Port;
|
|
}
|
|
}
|
|
|
|
#region Component Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent() {
|
|
this.components = new System.ComponentModel.Container();
|
|
this.MSLBinMessage = new RemObjects.SDK.BinMessage();
|
|
this.MSLTcpServerChannelInternal = new RemObjects.SDK.Server.IpTcpServerChannel(this.components);
|
|
this.MSLTcpServerChannelExternal = new RemObjects.SDK.Server.IpTcpServerChannel(this.components);
|
|
this.aesEncryptionEnvelope = new RemObjects.SDK.AesEncryptionEnvelope();
|
|
((System.ComponentModel.ISupportInitialize)(this.MSLTcpServerChannelInternal)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.MSLTcpServerChannelExternal)).BeginInit();
|
|
//
|
|
// MSLBinMessage
|
|
//
|
|
this.MSLBinMessage.ContentType = "application/octet-stream";
|
|
this.MSLBinMessage.Envelopes.Add(new RemObjects.SDK.MessageEnvelopeItem(this.aesEncryptionEnvelope));
|
|
this.MSLBinMessage.SerializerInstance = null;
|
|
//
|
|
// MSLTcpServerChannelInternal
|
|
//
|
|
this.MSLTcpServerChannelInternal.Dispatchers.Add(new RemObjects.SDK.Server.MessageDispatcher("bin", this.MSLBinMessage));
|
|
this.MSLTcpServerChannelInternal.Port = 1945;
|
|
//
|
|
//
|
|
//
|
|
this.MSLTcpServerChannelInternal.TcpServer.Port = 1945;
|
|
//
|
|
// MSLTcpServerChannelExternal
|
|
//
|
|
this.MSLTcpServerChannelExternal.Dispatchers.Add(new RemObjects.SDK.Server.MessageDispatcher("bin", this.MSLBinMessage));
|
|
this.MSLTcpServerChannelExternal.Port = 0;
|
|
//
|
|
// aesEncryptionEnvelope
|
|
//
|
|
this.aesEncryptionEnvelope.EnvelopeMarker = "AES";
|
|
this.aesEncryptionEnvelope.Password = "KxHWkkE5PAp4tuTzmPKQF7RUyylMk7VOV8zfYln2w6NZJMOvT3yrXofIJWxJYRSQwAkm8DysTG9k7";
|
|
//
|
|
// PlutoService
|
|
//
|
|
this.ServiceName = "PlutoServer.MSL";
|
|
((System.ComponentModel.ISupportInitialize)(this.MSLTcpServerChannelInternal)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.MSLTcpServerChannelExternal)).EndInit();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private RemObjects.SDK.BinMessage MSLBinMessage;
|
|
private RemObjects.SDK.Server.IpTcpServerChannel MSLTcpServerChannelInternal;
|
|
private RemObjects.SDK.Server.IpTcpServerChannel MSLTcpServerChannelExternal;
|
|
private RemObjects.SDK.AesEncryptionEnvelope aesEncryptionEnvelope;
|
|
}
|
|
}
|