My favorites | Sign in
Project Logo
                
Code license: Apache License 2.0
Labels: Coral8, PowerShell, .Net
People details
Project owners:
  scott.weinstein

Introduction

An alternate .Net API for Coral8. Includes a Powershell snapin for Coral8 with a navigation provider as well as cmdlets for managing a Coral8 server

Install

ps> installutil C8cx.dll
ps> add-pssnapin C8cx

Poweshell usage

ps> get-command -noun C8*
ps> get-psdrive -PSProvider Coral8
ps> ls C8Local:\
ps> Get-C8App |Start-C8App
ps> Get-C8App |Stop-C8App
ps> (Get-C8App  <app> | ? {$_.Name -eq "PendingMessages" }).Value

Details

NameDefinition
Add-C8App Add-C8App [-CcxFile] <String> [-ServerUrl <String>] [-Workspace <String>]
Get-C8App Get-C8App [[-App] <String>] [-ServerUrl <String>] [-Workspace <String>]
Remove-C8App Remove-C8App [-App] <String> [-ServerUrl <String>] [-Workspace <String>]
Start-C8App Start-C8App [-App] <String> [-ServerUrl <String>] [-Workspace <String>]
Stop-C8App Stop-C8App [-App] <String> [-ServerUrl <String>] [-Workspace <String>]

.Net usage

var s1 = new C8OutputStream("ccl://localhost:6789/Stream/Default/Proj/streamName");
s1.DataReceived += (tpl) => { var symbol = tpl.Field<string>("symbol"); };
s1.Connect();
var ts1 = new StockOutputStream("ccl://localhost:6789/Stream/Default/Proj/streamName");
ts1.DataReceived += (tpl) => { var symbol = tpl.symbol; };
ts1.Connect();








Hosted by Google Code