Skip to content

sharpe5/Orleans.Storage.MongoDB

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orleans.Storage.MongoDB

Orleans Storage MongoDB Provider

USE CASE

1. ServerConfiguration.xml
<?xml version="1.0" encoding="utf-8"?>
<OrleansConfiguration xmlns="urn:orleans">
  <Globals>
    <StorageProviders>
      <Provider Type="Orleans.Storage.MemoryStorage" Name="MemoryStore" />
      <Provider Type="Orleans.Storage.MongoDB.MongoDBStorage" Name="MongoDBStorage" Database="Orleans" ConnectionString="mongodb://localhost:27017/" />
    </StorageProviders>
    <SeedNode Address="localhost" Port="11111" />
  </Globals>
</OrleansConfiguration>

If you have MongoDB running on your local machine, then this should work with no modifications.

If you have MongoDB running on a remote machine, then you will have to update "localhost" to match the machine name.

2. Code
 [StorageProvider(ProviderName = "MongoDBStorage")]
 public class BankAccount : IGrain,IBankAccount
 {
 }

About

Orleans Storage MongoDBProvider

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%