Ejemplo n.º 1
0
        public async Task DeleteStreamAsync(string streamId)
        {
            // Delete container
            Console.WriteLine($"Deleting Container with Id {streamId}");
            Console.WriteLine();
            OmfContainerMessage containerMessage = OmfMessageCreator.CreateContainerMessage(streamId, typeof(DataPointType));

            containerMessage.ActionType = ActionType.Delete;
            await SendOmfMessageAsync(containerMessage);
        }
Ejemplo n.º 2
0
        public async Task CreateStreamAsync(string streamId)
        {
            // Create container
            Console.WriteLine($"Creating Container with Id {streamId}");
            Console.WriteLine();

            OmfContainerMessage containerMessage = OmfMessageCreator.CreateContainerMessage(streamId, typeof(DataPointType));

            await SendOmfMessageAsync(containerMessage).ConfigureAwait(false);
        }