public WebSocketApp(IVisualObjectsBox visualObjectBox, string appRoot, string webSocketRoot, ServiceContext initParams)
 {
     this.visualObjectBox = visualObjectBox;
     this.appRoot = string.IsNullOrWhiteSpace(appRoot) ? string.Empty : appRoot.TrimEnd('/') + '/';
     this.webSocketRoot = string.IsNullOrWhiteSpace(webSocketRoot) ? string.Empty : webSocketRoot.TrimEnd('/') + '/';
     this.serviceContext = initParams;
 }
 public WebCommunicationListener(IVisualObjectsBox visualObjectsBox, string appRoot, string webSocketRoot, ServiceInitializationParameters serviceInitializationParameters)
 {
     this.visualObjectsBox = visualObjectsBox;
     this.appRoot = appRoot;
     this.webSocketRoot = webSocketRoot;
     this.serviceInitializationParameters = serviceInitializationParameters;
 }        
Beispiel #3
0
        public Service(StatelessServiceContext serviceContext) : base(serviceContext)
        {
            ServiceContext context = serviceContext;

            ConfigurationPackage config  = context.CodePackageActivationContext.GetConfigurationPackageObject("Config");
            ConfigurationSection section = config.Settings.Sections["VisualObjectsBoxSettings"];

            int    numObjects  = int.Parse(section.Parameters["ObjectCount"].Value);
            string serviceName = section.Parameters["ServiceName"].Value;
            string appName     = context.CodePackageActivationContext.ApplicationName;

            this.actorServiceUri = new Uri(appName + "/" + serviceName);
            this.objectBox       = new VisualObjectsBox();
            this.actorIds        = this.CreateVisualObjectActorIds(appName, numObjects);
        }
        public Service(StatelessServiceContext serviceContext) : base(serviceContext)
        {
            ServiceContext context = serviceContext;

            ConfigurationPackage config = context.CodePackageActivationContext.GetConfigurationPackageObject("Config");
            ConfigurationSection section = config.Settings.Sections["VisualObjectsBoxSettings"];

            int numObjects = int.Parse(section.Parameters["ObjectCount"].Value);
            string serviceName = section.Parameters["ServiceName"].Value;
            string appName = context.CodePackageActivationContext.ApplicationName;

            this.ActorServiceUri = new Uri(appName + "/" + serviceName);
            this.objectBox = new VisualObjectsBox();
            this.actorIds = this.CreateVisualObjectActorIds(numObjects);
        }
 public WebCommunicationListener(IVisualObjectsBox visualObjectsBox, string appRoot, string webSocketRoot)
 {
     this.visualObjectsBox = visualObjectsBox;
     this.appRoot = appRoot;
     this.webSocketRoot = webSocketRoot;
 }
 public ValuesController(IVisualObjectsBox objectBox)
 {
     this.objectBox = objectBox;
 }
 public WebCommunicationListener(IVisualObjectsBox visualObjectsBox, string appRoot, string webSocketRoot)
 {
     this.visualObjectsBox = visualObjectsBox;
     this.appRoot          = appRoot;
     this.webSocketRoot    = webSocketRoot;
 }
Beispiel #8
0
 public WebSocketApp(IVisualObjectsBox visualObjectBox)
 {
     this.visualObjectBox    = visualObjectBox;
     this.cancellationSource = new CancellationTokenSource();
 }
 public WebSocketApp(IVisualObjectsBox visualObjectBox)
 {
     this.visualObjectBox = visualObjectBox;
     this.cancellationSource = new CancellationTokenSource();
 }