예제 #1
0
        public override async Task <bool> Initialize(LEDerConfig config)
        {
            await base.Initialize(config);

            try
            {
                if (string.IsNullOrWhiteSpace(this.IP_Adresse))
                {
                    throw new ArgumentNullException("IP_Adresse fehlt!");
                }

                if (0 == this.UDP_Port)
                {
                    throw new ArgumentNullException("UDP_Port fehlt!");
                }

                await OpenSocket();

                return(true);
            }
            catch (Exception ex)
            {
                log.Error(ex, "Fehler beim Initialisieren von Tpm2NetOutput: " + ex.Message);
                return(false);
            }
        }
예제 #2
0
 public Task <bool> Initialize(LEDerConfig config)
 {
     return(Task.FromResult(true));
 }
예제 #3
0
 public Task <bool> Initialize(LEDerConfig cfg)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public Task <bool> Initialize(LEDerConfig cfg)
 {
     base.Initialize(cfg);
     return(Task.FromResult(true));
 }