This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Plenom.Components.Busylight.Sdk; | |
using System.Threading; | |
namespace ThoughtStuff.BusylightSDK | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//Instantiate BusyLightController for either Lync or UC: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UserEndpoint _endpoint; | |
UserEndpointSettings settings; | |
settings = new UserEndpointSettings(_sipaddress); | |
settings.Credential = new System.Net.NetworkCredential(Username, Password, Domain); | |
_endpoint = new UserEndpoint(_collabPlatform, settings); | |
_endpoint.EndEstablish(_endpoint.BeginEstablish(null,null)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CollaborationPlatform _collabPlatform; | |
var platformSettings = new ProvisionedApplicationPlatformSettings("UCMASampleApp", _appID); | |
_collabPlatform = new CollaborationPlatform(platformSettings); | |
_collabPlatform.RegisterForApplicationEndpointSettings(ApplicationEndpointSettingsDiscovered); | |
_collabPlatform.EndStartup(_collabPlatform.BeginStartup(null, null)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CollaborationPlatform _collabPlatform; | |
var platformSettings = new ClientPlatformSettings(userAgent, Microsoft.Rtc.Signaling.SipTransportType.Tls); | |
_collabPlatform = new CollaborationPlatform(platformSettings); | |
_collabPlatform.AllowedAuthenticationProtocol = Microsoft.Rtc.Signaling.SipAuthenticationProtocols.Ntlm; | |
_collabPlatform.EndStartup(_collabPlatform.BeginStartup(null, null)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ApplicationEndpointSettingsDiscovered(object sender, ApplicationEndpointSettingsDiscoveredEventArgs e) | |
{ | |
ApplicationEndpointSettings settings = e.ApplicationEndpointSettings; | |
_Endpoint = new ApplicationEndpoint(_collabPlatform, settings); | |
_Endpoint.EndEstablish(_Endpoint.BeginEstablish(null, null)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Auth; | |
namespace WAStorageMgr | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public PersistentChatEndpoint( | |
Uri groupChatServerAddress, | |
LocalEndpoint ocs | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void MyMethod() { | |
//do some stuff | |
var flow = GetFlowFromSomewhere(); | |
var message = GetMessageFromSomewhere(); | |
flow.BeginSendInstantMessage(message, EndBeginSendInstanceMessage, flow); | |
//do some other things.... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void MyMethod() { | |
//do some stuff | |
var flow = GetFlowFromSomewhere(); | |
var message = GetMessageFromSomewhere(); | |
flow.BeginSendInstantMessage(message, result => | |
{ | |
try | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void MyMethod() | |
{ | |
await CallLongRunningTaskAsync(); | |
//this code runs AFTER the task has completed; | |
} |