/// <summary> /// Sends OMF type message for a type /// </summary> /// <param name="type">OMF type to be sent</param> internal void SendOmfType(Type type) { OmfTypeMessage msg = OmfMessageCreator.CreateTypeMessage(type); SendOmfMessage(msg); msg.ActionType = ActionType.Delete; _typeDeleteMessage = msg; }
public async Task DeleteDataPointTypeAsync() { // Delete type Console.WriteLine($"Deleting Type with Id {typeof(DataPointType).Name}"); Console.WriteLine(); OmfTypeMessage typeMessage = OmfMessageCreator.CreateTypeMessage(typeof(DataPointType)); typeMessage.ActionType = ActionType.Delete; await SendOmfMessageAsync(typeMessage); }
public async Task CreateDataPointTypeAsync() { // Create a DataPointType Console.WriteLine($"Creating Type with Id {typeof(DataPointType).Name}"); Console.WriteLine(); OmfTypeMessage typeMessage = OmfMessageCreator.CreateTypeMessage(typeof(DataPointType)); await SendOmfMessageAsync(typeMessage); }