protected BaseProtocol() { Id = ++_idGenerator; Type = this.GetAttribute<ProtocolTypeAttribute>().First().Type; DeleteFarProtocol = true; DeleteNearProtocol = true; this.RegisterProtocol(); }