Commit 504720c1 authored by Liuhaoyang's avatar Liuhaoyang

Init GrpcRuntimeService

parent cbfefe30
......@@ -18,9 +18,7 @@
using System;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using SkyWalking.Boot;
......@@ -50,7 +48,7 @@ namespace SkyWalking.Remote
var registerTime = DateTime.UtcNow.GetTimeMillis();
var hostName = Dns.GetHostName();
// var ipv4s = Dns.GetHostAddresses(hostName);
var osInfo = new OSInfo
{
Hostname = hostName,
......@@ -58,8 +56,10 @@ namespace SkyWalking.Remote
ProcessNo = Process.GetCurrentProcess().Id
};
// foreach (var ipAddress in ipv4s.Where(x => x.AddressFamily == AddressFamily.InterNetwork))
// osInfo.Ipv4S.Add(ipAddress.ToString());
// todo fix Device not configured
//var ipv4s = Dns.GetHostAddresses(hostName);
//foreach (var ipAddress in ipv4s.Where(x => x.AddressFamily == AddressFamily.InterNetwork))
// osInfo.Ipv4S.Add(ipAddress.ToString());
var applicationInstance = new ApplicationInstance
{
......@@ -75,8 +75,7 @@ namespace SkyWalking.Remote
}
protected override TimeSpan Interval { get; } = TimeSpan.FromMinutes(1);
protected override async Task Execute(CancellationToken token)
{
var instanceDiscoveryService =
......
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using SkyWalking.Boot;
namespace SkyWalking.Remote
{
public class GrpcRuntimeService : TimerService
{
protected override TimeSpan Interval { get; } = TimeSpan.FromSeconds(120);
protected override Task Execute(CancellationToken token)
{
// todo
return Task.CompletedTask;
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment