protected static BsonDocument BuildPropertiesBsonDocument(ServiceCounter properties) { var doc = new BsonDocument { {"ID", properties.Id}, { "InstanceName", properties.InstanceName}, { "MachineIP", properties.MachineIP}, { "MachineName", properties.MachineName}, { "ServiceName",properties.ServiceName }, { "DisplayType", properties.DisplayType}, { "DisplayName",properties.DisplayName }, {"CounterName",properties.CounterName}, {"CategoryName",properties.CategoryName} }; return doc; }
protected static BsonDocument BuildPropertiesBsonDocument(ServiceCounter properties) { var doc = new BsonDocument { { "ID", properties.Id }, { "InstanceName", properties.InstanceName }, { "MachineIP", properties.MachineIP }, { "MachineName", properties.MachineName }, { "ServiceName", properties.ServiceName }, { "DisplayType", properties.DisplayType }, { "DisplayName", properties.DisplayName }, { "CounterName", properties.CounterName }, { "CategoryName", properties.CategoryName } }; return(doc); }