Skip to content

Instantly share code, notes, and snippets.

View Tapanila's full-sized avatar

Teemu Tapanila Tapanila

View GitHub Profile
using System.ServiceModel;
namespace SimpleWCFService
{
[ServiceContract]
public interface IService1
{
[OperationContract]
bool SaveText(string content, string blobName, string containerName);
using System.IO;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.StorageClient;
namespace SimpleWCFService
{
public class Service1 : IService1
{
string storageConnectionString =
"DefaultEndpointsProtocol=https;AccountName={Storage Account Name};" +
using TapanilaBlogWCF.ServiceReference1;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
namespace TapanilaBlogWCF
{
public sealed partial class MainPage : Page
{
public MainPage()
using System;
using System.Windows;
using Microsoft.Phone.Controls;
using TapanilaBlogWP.ServiceReference1;
namespace TapanilaBlogWP
{
public partial class MainPage : PhoneApplicationPage
{
Service1Client client = new Service1Client();
using System.ServiceModel;
namespace WcfServiceExample
{
[ServiceContract]
public interface IService1
{
[OperationContract]
bool SavePicture(byte[] picture, string pictureName);
using System.IO;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.StorageClient;
namespace WcfServiceExample
{
public class Service1 : IService1
{
string storageConnectionString =
"DefaultEndpointsProtocol=https;AccountName=accountName;" +
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpRuntime maxRequestLength="2097151000" executionTimeout="3600"/>
</system.web>
<system.serviceModel>
<bindings>
<basicHttpBinding>
using Twilio;
namespace WcfServiceExample
{
public class Service1 : IService1
{
public bool SendTextMessage(string message)
{
var accountSid = "";
var authToken = "";
using System.ServiceModel;
namespace WcfServiceExample
{
[ServiceContract]
public interface IService1
{
[OperationContract]
bool SendTextMessage(string message);
}
using System.ServiceModel;
namespace WcfServiceExample
{
[ServiceContract]
public interface IService1
{
[OperationContract]
public bool SendEmail(string topic, string content);
}