Example #1
0
        /// <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;
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }