예제 #1
0
        public EventInboundService(AndyXClient andyXClient, Chart vonesaKoheore, ListBox listOfResultsBox, Label lblVkMes, Label lblVkMax, Label lblVkMin)
        {
            this.vonesaKoheore    = vonesaKoheore;
            this.listOfResultsBox = listOfResultsBox;
            this.lblVkMes         = lblVkMes;
            this.lblVkMax         = lblVkMax;
            this.lblVkMin         = lblVkMin;
            chartDataList         = new List <KeyValuePair <string, int> >();
            ((LineSeries)vonesaKoheore.Series[0]).ItemsSource = chartDataList;
            datas = new List <double>();

            var reader = new Reader <Event>(andyXClient.GetClient())
                         .Component(Event.ComponentName)
                         .Book(Event.BookName)
                         .ReaderType(Buildersoft.Andy.X.Client.Model.ReaderTypes.Exclusive)
                         .ReaderName("reporting-vonesa-koheore-pc")
                         .ReaderAs(Buildersoft.Andy.X.Client.Model.ReaderAs.Subscription)
                         .Build();

            source = new Source <Event>(reader)
                     .Configure(new Buildersoft.Andy.X.Streams.Settings.SourceConfigurationSettings())
                     .Throttle(1, 1);

            source.Integration += Source_Integration;
            source.InitializeReader();
        }
 public EventOutboundService(AndyXClient andyXClient)
 {
     writer = new Writer <Event>(andyXClient.GetClient())
              .Component(Event.ComponentName)
              .Book(Event.BookName)
              .Schema(Buildersoft.Andy.X.Client.Model.SchemaTypes.Json)
              .WriterType(Buildersoft.Andy.X.Client.Model.WriterTypes.StreamAndStore)
              .Build();
 }
예제 #3
0
 public ResponseOutboundService(AndyXClient andyXClient)
 {
     writer = new Writer <Models.Test.Response>(andyXClient.GetClient())
              .Component(Models.Test.Response.ComponentName)
              .Book(Models.Test.Response.BookName)
              .Schema(Buildersoft.Andy.X.Client.Model.SchemaTypes.Json)
              .WriterType(Buildersoft.Andy.X.Client.Model.WriterTypes.StreamAndStore)
              .Build();
 }
예제 #4
0
        public CommandInboundService(AndyXClient andyXClient)
        {
            var reader = new Reader <Command>(andyXClient.GetClient())
                         .Component(Command.ComponentName)
                         .Book(Command.BookName)
                         .ReaderType(Buildersoft.Andy.X.Client.Model.ReaderTypes.Exclusive)
                         .ReaderName("command-time-mcu-02")
                         .ReaderAs(Buildersoft.Andy.X.Client.Model.ReaderAs.Subscription)
                         .Build();

            _eventOutboundService = new EventOutboundService(andyXClient);

            source = new Source <Command>(reader)
                     .Configure(new Buildersoft.Andy.X.Streams.Settings.SourceConfigurationSettings())
                     .Throttle(1, 1);

            source.Integration += Source_Integration;
            source.InitializeReader();
        }
        public RequestInboundService(AndyXClient andyXClient)
        {
            var reader = new Reader <Models.Test.Request>(andyXClient.GetClient())
                         .Component(Models.Test.Request.ComponentName)
                         .Book(Models.Test.Request.BookName)
                         .ReaderType(Buildersoft.Andy.X.Client.Model.ReaderTypes.Exclusive)
                         .ReaderName("request-test-mcu-01")
                         .ReaderAs(Buildersoft.Andy.X.Client.Model.ReaderAs.Subscription)
                         .Build();

            _responseOutboundService = new ResponseOutboundService(andyXClient);

            source = new Source <Models.Test.Request>(reader)
                     .Configure(new Buildersoft.Andy.X.Streams.Settings.SourceConfigurationSettings())
                     .Throttle(1, 1);

            source.Integration += Source_Integration;
            source.InitializeReader();
        }
예제 #6
0
        public ResponseInboundService(AndyXClient andyXClient)
        {
            var reader = new Reader <Response>(andyXClient.GetClient())
                         .Component(Response.ComponentName)
                         .Book(Response.BookName)
                         .ReaderType(Buildersoft.Andy.X.Client.Model.ReaderTypes.Exclusive)
                         .ReaderName("response-test-mcu-02")
                         .ReaderAs(Buildersoft.Andy.X.Client.Model.ReaderAs.Subscription)
                         .Build();

            _requestOutboundService = new RequestOutboundService(andyXClient);

            _requestOutboundService.WriteRequest(new Request()
            {
                Message = "IncrementNumber", Autonumber = 1
            });

            source = new Source <Response>(reader)
                     .Configure(new Buildersoft.Andy.X.Streams.Settings.SourceConfigurationSettings())
                     .Throttle(1, 1);

            source.Integration += Source_Integration;
            source.InitializeReader();
        }
 public AndyXProperty GetAndyXProperty()
 {
     return(_andyXClient.GetClient());
 }