-
Notifications
You must be signed in to change notification settings - Fork 5
Home
Tsuyoshi Ushio edited this page Aug 9, 2016
·
7 revisions
- Chapter 2
CalculatorService.cs
protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners()
{
return new[]
{
new ServiceInstanceListener(context =>
this.CreateServiceRemotingListener(context))
};
}
Program.cs
ServiceRuntime.RegisterServiceAsync("CalculatorServiceType",
context => new CalculatorService(context)).GetAwaiter().GetResult();
[Code Sample] (Code Sample)[https://github.com/TsuyoshiUshio/AzureServiceFabricSample/blob/4cf37a68634018072b2efeaa6d47709820067e96/Chapter02/CalculatorApplication/CalculatorService/Program.cs#L24-L25]